chore: bump dts-buddy (#12134)

new dts-buddy makes sure that only the actual public types are exposed (only export { ... } ensures that, for TS historical reasons)

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
pull/12153/head
Rich Harris 1 year ago committed by GitHub
parent 8ae5885d8d
commit 88b0b401ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
breaking: bump dts-buddy

@ -122,7 +122,7 @@
"@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2", "@rollup/plugin-virtual": "^3.0.2",
"@types/aria-query": "^5.0.4", "@types/aria-query": "^5.0.4",
"dts-buddy": "^0.4.7", "dts-buddy": "^0.5.0",
"esbuild": "^0.19.11", "esbuild": "^0.19.11",
"knip": "^4.2.1", "knip": "^4.2.1",
"rollup": "^4.9.5", "rollup": "^4.9.5",

@ -26,7 +26,7 @@ export function readable(value, start) {
* @param {any} b * @param {any} b
* @returns {boolean} * @returns {boolean}
*/ */
export function safe_not_equal(a, b) { function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function'; return a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';
} }
@ -213,11 +213,9 @@ export function readonly(store) {
* @param {import('../store/public').Readable<T>} store * @param {import('../store/public').Readable<T>} store
* @returns {T} * @returns {T}
*/ */
export function get_store_value(store) { export function get(store) {
let value; let value;
subscribe_to_store(store, (_) => (value = _))(); subscribe_to_store(store, (_) => (value = _))();
// @ts-expect-error // @ts-expect-error
return value; return value;
} }
export { get_store_value as get };

@ -5,7 +5,7 @@ declare module 'svelte' {
* See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) * See [breaking changes](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes)
* for more info. * for more info.
*/ */
export interface ComponentConstructorOptions< interface ComponentConstructorOptions<
Props extends Record<string, any> = Record<string, any> Props extends Record<string, any> = Record<string, any>
> { > {
target: Element | Document | ShadowRoot; target: Element | Document | ShadowRoot;
@ -36,7 +36,7 @@ declare module 'svelte' {
* To instantiate components, use `mount` instead`. * To instantiate components, use `mount` instead`.
* See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info. * See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more info.
*/ */
export class SvelteComponent< class SvelteComponent<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
Events extends Record<string, any> = any, Events extends Record<string, any> = any,
Slots extends Record<string, any> = any Slots extends Record<string, any> = any
@ -123,7 +123,7 @@ declare module 'svelte' {
* <MyComponent foo={'bar'} /> * <MyComponent foo={'bar'} />
* ``` * ```
*/ */
export interface Component< interface Component<
Props extends Record<string, any> = {}, Props extends Record<string, any> = {},
Exports extends Record<string, any> = {}, Exports extends Record<string, any> = {},
Bindings extends keyof Props | '' = string Bindings extends keyof Props | '' = string
@ -158,7 +158,7 @@ declare module 'svelte' {
/** /**
* @deprecated Use `Component` instead. See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more information. * @deprecated Use `Component` instead. See [breaking changes documentation](https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes) for more information.
*/ */
export class SvelteComponentTyped< class SvelteComponentTyped<
Props extends Record<string, any> = Record<string, any>, Props extends Record<string, any> = Record<string, any>,
Events extends Record<string, any> = any, Events extends Record<string, any> = any,
Slots extends Record<string, any> = any Slots extends Record<string, any> = any
@ -182,7 +182,7 @@ declare module 'svelte' {
* <Component on:close={handleCloseEvent} /> * <Component on:close={handleCloseEvent} />
* ``` * ```
*/ */
export type ComponentEvents<Comp extends SvelteComponent> = type ComponentEvents<Comp extends SvelteComponent> =
Comp extends SvelteComponent<any, infer Events> ? Events : never; Comp extends SvelteComponent<any, infer Events> ? Events : never;
/** /**
@ -196,7 +196,7 @@ declare module 'svelte' {
* </script> * </script>
* ``` * ```
*/ */
export type ComponentProps<Comp extends SvelteComponent | Component<any>> = type ComponentProps<Comp extends SvelteComponent | Component<any>> =
Comp extends SvelteComponent<infer Props> Comp extends SvelteComponent<infer Props>
? Props ? Props
: Comp extends Component<infer Props> : Comp extends Component<infer Props>
@ -225,7 +225,7 @@ declare module 'svelte' {
* <svelte:component this={componentOfCertainSubType} needsThisProp="hello" /> * <svelte:component this={componentOfCertainSubType} needsThisProp="hello" />
* ``` * ```
*/ */
export type ComponentType<Comp extends SvelteComponent = SvelteComponent> = (new ( type ComponentType<Comp extends SvelteComponent = SvelteComponent> = (new (
options: ComponentConstructorOptions< options: ComponentConstructorOptions<
Comp extends SvelteComponent<infer Props> ? Props : Record<string, any> Comp extends SvelteComponent<infer Props> ? Props : Record<string, any>
> >
@ -243,7 +243,7 @@ declare module 'svelte' {
* ``` * ```
* You can only call a snippet through the `{@render ...}` tag. * You can only call a snippet through the `{@render ...}` tag.
*/ */
export type Snippet<T extends unknown[] = []> = type Snippet<T extends unknown[] = []> =
// this conditional allows tuples but not arrays. Arrays would indicate a // this conditional allows tuples but not arrays. Arrays would indicate a
// rest parameter type, which is not supported. If rest parameters are added // rest parameter type, which is not supported. If rest parameters are added
// in the future, the condition can be removed. // in the future, the condition can be removed.
@ -262,7 +262,7 @@ declare module 'svelte' {
cancelable?: boolean; cancelable?: boolean;
} }
export interface EventDispatcher<EventMap extends Record<string, any>> { interface EventDispatcher<EventMap extends Record<string, any>> {
// Implementation notes: // Implementation notes:
// - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode // - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode
// - | null | undefined is added for convenience, as they are equivalent for the custom event constructor (both result in a null detail) // - | null | undefined is added for convenience, as they are equivalent for the custom event constructor (both result in a null detail)
@ -285,7 +285,7 @@ declare module 'svelte' {
* *
* https://svelte.dev/docs/svelte#onmount * https://svelte.dev/docs/svelte#onmount
* */ * */
export function onMount<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void; function onMount<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void;
/** /**
* Schedules a callback to run immediately before the component is unmounted. * Schedules a callback to run immediately before the component is unmounted.
* *
@ -294,7 +294,7 @@ declare module 'svelte' {
* *
* https://svelte.dev/docs/svelte#ondestroy * https://svelte.dev/docs/svelte#ondestroy
* */ * */
export function onDestroy(fn: () => any): void; function onDestroy(fn: () => any): void;
/** /**
* Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname). * Creates an event dispatcher that can be used to dispatch [component events](https://svelte.dev/docs#template-syntax-component-directives-on-eventname).
* Event dispatchers are functions that can take two arguments: `name` and `detail`. * Event dispatchers are functions that can take two arguments: `name` and `detail`.
@ -317,7 +317,7 @@ declare module 'svelte' {
* https://svelte.dev/docs/svelte#createeventdispatcher * https://svelte.dev/docs/svelte#createeventdispatcher
* @deprecated Use callback props and/or the `$host()` rune instead see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher * @deprecated Use callback props and/or the `$host()` rune instead see https://svelte-5-preview.vercel.app/docs/deprecations#createeventdispatcher
* */ * */
export function createEventDispatcher<EventMap extends Record<string, any> = any>(): EventDispatcher<EventMap>; function createEventDispatcher<EventMap extends Record<string, any> = any>(): EventDispatcher<EventMap>;
/** /**
* Schedules a callback to run immediately before the component is updated after any state change. * Schedules a callback to run immediately before the component is updated after any state change.
* *
@ -328,7 +328,7 @@ declare module 'svelte' {
* https://svelte.dev/docs/svelte#beforeupdate * https://svelte.dev/docs/svelte#beforeupdate
* @deprecated Use `$effect.pre` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect.pre` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
* */ * */
export function beforeUpdate(fn: () => void): void; function beforeUpdate(fn: () => void): void;
/** /**
* Schedules a callback to run immediately after the component has been updated. * Schedules a callback to run immediately after the component has been updated.
* *
@ -339,18 +339,18 @@ declare module 'svelte' {
* https://svelte.dev/docs/svelte#afterupdate * https://svelte.dev/docs/svelte#afterupdate
* @deprecated Use `$effect` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * @deprecated Use `$effect` instead see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate
* */ * */
export function afterUpdate(fn: () => void): void; function afterUpdate(fn: () => void): void;
/** /**
* Synchronously flushes any pending state changes and those that result from it. * Synchronously flushes any pending state changes and those that result from it.
* */ * */
export function flushSync(fn?: (() => void) | undefined): void; function flushSync(fn?: (() => void) | undefined): void;
/** Anything except a function */ /** Anything except a function */
type NotFunction<T> = T extends Function ? never : T; type NotFunction<T> = T extends Function ? never : T;
/** /**
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
* *
* */ * */
export function mount<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? { function mount<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
anchor?: Node; anchor?: Node;
props?: Props; props?: Props;
@ -369,7 +369,7 @@ declare module 'svelte' {
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
* *
* */ * */
export function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? { function hydrate<Props extends Record<string, any>, Exports extends Record<string, any>>(component: ComponentType<SvelteComponent<Props>> | Component<Props, Exports, any>, options: {} extends Props ? {
target: Document | Element | ShadowRoot; target: Document | Element | ShadowRoot;
props?: Props; props?: Props;
events?: Record<string, (e: any) => any>; events?: Record<string, (e: any) => any>;
@ -387,24 +387,24 @@ declare module 'svelte' {
/** /**
* Unmounts a component that was previously mounted using `mount` or `hydrate`. * Unmounts a component that was previously mounted using `mount` or `hydrate`.
* */ * */
export function unmount(component: Record<string, any>): void; function unmount(component: Record<string, any>): void;
/** /**
* Returns a promise that resolves once any pending state changes have been applied. * Returns a promise that resolves once any pending state changes have been applied.
* */ * */
export function tick(): Promise<void>; function tick(): Promise<void>;
/** /**
* Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency. * Use `untrack` to prevent something from being treated as an `$effect`/`$derived` dependency.
* *
* https://svelte-5-preview.vercel.app/docs/functions#untrack * https://svelte-5-preview.vercel.app/docs/functions#untrack
* */ * */
export function untrack<T>(fn: () => T): T; function untrack<T>(fn: () => T): T;
/** /**
* Retrieves the context that belongs to the closest parent component with the specified `key`. * Retrieves the context that belongs to the closest parent component with the specified `key`.
* Must be called during component initialisation. * Must be called during component initialisation.
* *
* https://svelte.dev/docs/svelte#getcontext * https://svelte.dev/docs/svelte#getcontext
* */ * */
export function getContext<T>(key: any): T; function getContext<T>(key: any): T;
/** /**
* Associates an arbitrary `context` object with the current component and the specified `key` * Associates an arbitrary `context` object with the current component and the specified `key`
* and returns that object. The context is then available to children of the component * and returns that object. The context is then available to children of the component
@ -414,14 +414,14 @@ declare module 'svelte' {
* *
* https://svelte.dev/docs/svelte#setcontext * https://svelte.dev/docs/svelte#setcontext
* */ * */
export function setContext<T>(key: any, context: T): T; function setContext<T>(key: any, context: T): T;
/** /**
* Checks whether a given `key` has been set in the context of a parent component. * Checks whether a given `key` has been set in the context of a parent component.
* Must be called during component initialisation. * Must be called during component initialisation.
* *
* https://svelte.dev/docs/svelte#hascontext * https://svelte.dev/docs/svelte#hascontext
* */ * */
export function hasContext(key: any): boolean; function hasContext(key: any): boolean;
/** /**
* Retrieves the whole context map that belongs to the closest parent component. * Retrieves the whole context map that belongs to the closest parent component.
* Must be called during component initialisation. Useful, for example, if you * Must be called during component initialisation. Useful, for example, if you
@ -429,7 +429,9 @@ declare module 'svelte' {
* *
* https://svelte.dev/docs/svelte#getallcontexts * https://svelte.dev/docs/svelte#getallcontexts
* */ * */
export function getAllContexts<T extends Map<any, any> = Map<any, any>>(): T; function getAllContexts<T extends Map<any, any> = Map<any, any>>(): T;
export { ComponentConstructorOptions, SvelteComponent, Component, SvelteComponentTyped, ComponentEvents, ComponentProps, ComponentType, Snippet, EventDispatcher, onMount, onDestroy, createEventDispatcher, beforeUpdate, afterUpdate, flushSync, hydrate, mount, unmount, getContext, getAllContexts, hasContext, setContext, tick, untrack };
} }
declare module 'svelte/action' { declare module 'svelte/action' {
@ -461,7 +463,7 @@ declare module 'svelte/action' {
* *
* Docs: https://svelte.dev/docs/svelte-action * Docs: https://svelte.dev/docs/svelte-action
*/ */
export interface ActionReturn< interface ActionReturn<
Parameter = undefined, Parameter = undefined,
Attributes extends Record<string, any> = Record<never, any> Attributes extends Record<string, any> = Record<never, any>
> { > {
@ -492,7 +494,7 @@ declare module 'svelte/action' {
* *
* Docs: https://svelte.dev/docs/svelte-action * Docs: https://svelte.dev/docs/svelte-action
*/ */
export interface Action< interface Action<
Element = HTMLElement, Element = HTMLElement,
Parameter = undefined, Parameter = undefined,
Attributes extends Record<string, any> = Record<never, any> Attributes extends Record<string, any> = Record<never, any>
@ -506,11 +508,13 @@ declare module 'svelte/action' {
// Implementation notes: // Implementation notes:
// - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode // - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode
export { ActionReturn, Action };
} }
declare module 'svelte/animate' { declare module 'svelte/animate' {
// todo: same as Transition, should it be shared? // todo: same as Transition, should it be shared?
export interface AnimationConfig { interface AnimationConfig {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: (t: number) => number; easing?: (t: number) => number;
@ -518,7 +522,7 @@ declare module 'svelte/animate' {
tick?: (t: number, u: number) => void; tick?: (t: number, u: number) => void;
} }
export interface FlipParams { interface FlipParams {
delay?: number; delay?: number;
duration?: number | ((len: number) => number); duration?: number | ((len: number) => number);
easing?: (t: number) => number; easing?: (t: number) => number;
@ -529,10 +533,12 @@ declare module 'svelte/animate' {
* *
* https://svelte.dev/docs/svelte-animate#flip * https://svelte.dev/docs/svelte-animate#flip
* */ * */
export function flip(node: Element, { from, to }: { function flip(node: Element, { from, to }: {
from: DOMRect; from: DOMRect;
to: DOMRect; to: DOMRect;
}, params?: FlipParams): AnimationConfig; }, params?: FlipParams): AnimationConfig;
export { AnimationConfig, FlipParams, flip };
} }
declare module 'svelte/compiler' { declare module 'svelte/compiler' {
@ -547,14 +553,14 @@ declare module 'svelte/compiler' {
* @param source The component source code * @param source The component source code
* @param options The compiler options * @param options The compiler options
* */ * */
export function compile(source: string, options: CompileOptions): CompileResult; function compile(source: string, options: CompileOptions): CompileResult;
/** /**
* `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module. * `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module.
* *
* https://svelte.dev/docs/svelte-compiler#svelte-compile * https://svelte.dev/docs/svelte-compiler#svelte-compile
* @param source The component source code * @param source The component source code
* */ * */
export function compileModule(source: string, options: ModuleCompileOptions): CompileResult; function compileModule(source: string, options: ModuleCompileOptions): CompileResult;
/** /**
* The parse function parses a component, returning only its abstract syntax tree. * The parse function parses a component, returning only its abstract syntax tree.
* *
@ -563,7 +569,7 @@ declare module 'svelte/compiler' {
* *
* https://svelte.dev/docs/svelte-compiler#svelte-parse * https://svelte.dev/docs/svelte-compiler#svelte-parse
* */ * */
export function parse(source: string, options: { function parse(source: string, options: {
filename?: string; filename?: string;
modern: true; modern: true;
}): Root; }): Root;
@ -575,14 +581,14 @@ declare module 'svelte/compiler' {
* *
* https://svelte.dev/docs/svelte-compiler#svelte-parse * https://svelte.dev/docs/svelte-compiler#svelte-parse
* */ * */
export function parse(source: string, options?: { function parse(source: string, options?: {
filename?: string; filename?: string;
modern?: false; modern?: false;
} | undefined): LegacyRoot; } | undefined): LegacyRoot;
/** /**
* @deprecated Replace this with `import { walk } from 'estree-walker'` * @deprecated Replace this with `import { walk } from 'estree-walker'`
* */ * */
export function walk(): never; function walk(): never;
/** The return value of `compile` from `svelte/compiler` */ /** The return value of `compile` from `svelte/compiler` */
interface CompileResult { interface CompileResult {
/** The compiled JavaScript */ /** The compiled JavaScript */
@ -1107,10 +1113,10 @@ declare module 'svelte/compiler' {
* *
* https://svelte.dev/docs/svelte-compiler#svelte-preprocess * https://svelte.dev/docs/svelte-compiler#svelte-preprocess
* */ * */
export function preprocess(source: string, preprocessor: PreprocessorGroup | PreprocessorGroup[], options?: { function preprocess(source: string, preprocessor: PreprocessorGroup | PreprocessorGroup[], options?: {
filename?: string; filename?: string;
} | undefined): Promise<Processed>; } | undefined): Promise<Processed>;
export class CompileError extends Error { class CompileError extends Error {
constructor(code: string, message: string, position: [number, number] | undefined); constructor(code: string, message: string, position: [number, number] | undefined);
filename: string | undefined; filename: string | undefined;
@ -1127,13 +1133,13 @@ declare module 'svelte/compiler' {
* *
* https://svelte.dev/docs/svelte-compiler#svelte-version * https://svelte.dev/docs/svelte-compiler#svelte-version
* */ * */
export const VERSION: string; const VERSION: string;
/** /**
* Does a best-effort migration of Svelte code towards using runes, event attributes and render tags. * Does a best-effort migration of Svelte code towards using runes, event attributes and render tags.
* May throw an error if the code is too complex to migrate automatically. * May throw an error if the code is too complex to migrate automatically.
* *
* */ * */
export function migrate(source: string): { function migrate(source: string): {
code: string; code: string;
}; };
class Scope { class Scope {
@ -1869,133 +1875,137 @@ declare module 'svelte/compiler' {
style?: Preprocessor; style?: Preprocessor;
script?: Preprocessor; script?: Preprocessor;
} }
export { compile, compileModule, parse, walk, preprocess, CompileError, VERSION, migrate };
} }
declare module 'svelte/easing' { declare module 'svelte/easing' {
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function linear(t: number): number; function linear(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function backInOut(t: number): number; function backInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function backIn(t: number): number; function backIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function backOut(t: number): number; function backOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function bounceOut(t: number): number; function bounceOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function bounceInOut(t: number): number; function bounceInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function bounceIn(t: number): number; function bounceIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function circInOut(t: number): number; function circInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function circIn(t: number): number; function circIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function circOut(t: number): number; function circOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function cubicInOut(t: number): number; function cubicInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function cubicIn(t: number): number; function cubicIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function cubicOut(t: number): number; function cubicOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function elasticInOut(t: number): number; function elasticInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function elasticIn(t: number): number; function elasticIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function elasticOut(t: number): number; function elasticOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function expoInOut(t: number): number; function expoInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function expoIn(t: number): number; function expoIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function expoOut(t: number): number; function expoOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quadInOut(t: number): number; function quadInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quadIn(t: number): number; function quadIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quadOut(t: number): number; function quadOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quartInOut(t: number): number; function quartInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quartIn(t: number): number; function quartIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quartOut(t: number): number; function quartOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quintInOut(t: number): number; function quintInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quintIn(t: number): number; function quintIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function quintOut(t: number): number; function quintOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function sineInOut(t: number): number; function sineInOut(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function sineIn(t: number): number; function sineIn(t: number): number;
/** /**
* https://svelte.dev/docs/svelte-easing * https://svelte.dev/docs/svelte-easing
* */ * */
export function sineOut(t: number): number; function sineOut(t: number): number;
export { linear, backInOut, backIn, backOut, bounceOut, bounceInOut, bounceIn, circInOut, circIn, circOut, cubicInOut, cubicIn, cubicOut, elasticInOut, elasticIn, elasticOut, expoInOut, expoIn, expoOut, quadInOut, quadIn, quadOut, quartInOut, quartIn, quartOut, quintInOut, quintIn, quintOut, sineInOut, sineIn, sineOut };
} }
declare module 'svelte/legacy' { declare module 'svelte/legacy' {
@ -2005,7 +2015,7 @@ declare module 'svelte/legacy' {
* @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5. * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
* *
* */ * */
export function createClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(options: import("svelte").ComponentConstructorOptions<Props> & { function createClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(options: import("svelte").ComponentConstructorOptions<Props> & {
component: import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots>> | import("svelte").Component<Props>; component: import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots>> | import("svelte").Component<Props>;
immutable?: boolean; immutable?: boolean;
hydrate?: boolean; hydrate?: boolean;
@ -2017,17 +2027,19 @@ declare module 'svelte/legacy' {
* @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5. * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
* *
* */ * */
export function asClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(component: import("svelte").SvelteComponent<Props, Events, Slots> | import("svelte").Component<Props>): import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots> & Exports>; function asClassComponent<Props extends Record<string, any>, Exports extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>>(component: import("svelte").SvelteComponent<Props, Events, Slots> | import("svelte").Component<Props>): import("svelte").ComponentType<import("svelte").SvelteComponent<Props, Events, Slots> & Exports>;
/** /**
* Runs the given function once immediately on the server, and works like `$effect.pre` on the client. * Runs the given function once immediately on the server, and works like `$effect.pre` on the client.
* *
* @deprecated Use this only as a temporary solution to migrate your component code to Svelte 5. * @deprecated Use this only as a temporary solution to migrate your component code to Svelte 5.
* */ * */
export function run(fn: () => void | (() => void)): void; function run(fn: () => void | (() => void)): void;
export { createClassComponent, asClassComponent, run };
} }
declare module 'svelte/motion' { declare module 'svelte/motion' {
export interface Spring<T> extends Readable<T> { interface Spring<T> extends Readable<T> {
set: (new_value: T, opts?: SpringUpdateOpts) => Promise<void>; set: (new_value: T, opts?: SpringUpdateOpts) => Promise<void>;
update: (fn: Updater<T>, opts?: SpringUpdateOpts) => Promise<void>; update: (fn: Updater<T>, opts?: SpringUpdateOpts) => Promise<void>;
precision: number; precision: number;
@ -2035,7 +2047,7 @@ declare module 'svelte/motion' {
stiffness: number; stiffness: number;
} }
export interface Tweened<T> extends Readable<T> { interface Tweened<T> extends Readable<T> {
set(value: T, opts?: TweenedOptions<T>): Promise<void>; set(value: T, opts?: TweenedOptions<T>): Promise<void>;
update(updater: Updater<T>, opts?: TweenedOptions<T>): Promise<void>; update(updater: Updater<T>, opts?: TweenedOptions<T>): Promise<void>;
} }
@ -2080,13 +2092,15 @@ declare module 'svelte/motion' {
* *
* https://svelte.dev/docs/svelte-motion#spring * https://svelte.dev/docs/svelte-motion#spring
* */ * */
export function spring<T = any>(value?: T | undefined, opts?: SpringOpts | undefined): Spring<T>; function spring<T = any>(value?: T | undefined, opts?: SpringOpts | undefined): Spring<T>;
/** /**
* A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time. * A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time.
* *
* https://svelte.dev/docs/svelte-motion#tweened * https://svelte.dev/docs/svelte-motion#tweened
* */ * */
export function tweened<T>(value?: T | undefined, defaults?: TweenedOptions<T> | undefined): Tweened<T>; function tweened<T>(value?: T | undefined, defaults?: TweenedOptions<T> | undefined): Tweened<T>;
export { Spring, Tweened, spring, tweened };
} }
declare module 'svelte/reactivity' { declare module 'svelte/reactivity' {
@ -2129,7 +2143,7 @@ declare module 'svelte/server' {
* Only available on the server and when compiling with the `server` option. * Only available on the server and when compiling with the `server` option.
* Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app. * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
*/ */
export function render< function render<
Comp extends SvelteComponent<any> | Component<any>, Comp extends SvelteComponent<any> | Component<any>,
Props extends ComponentProps<Comp> = ComponentProps<Comp> Props extends ComponentProps<Comp> = ComponentProps<Comp>
>( >(
@ -2151,17 +2165,19 @@ declare module 'svelte/server' {
/** HTML that goes somewhere into the `<body>` */ /** HTML that goes somewhere into the `<body>` */
body: string; body: string;
} }
export { render };
} }
declare module 'svelte/store' { declare module 'svelte/store' {
/** Callback to inform of a value updates. */ /** Callback to inform of a value updates. */
export type Subscriber<T> = (value: T) => void; type Subscriber<T> = (value: T) => void;
/** Unsubscribes from value updates. */ /** Unsubscribes from value updates. */
export type Unsubscriber = () => void; type Unsubscriber = () => void;
/** Callback to update a value. */ /** Callback to update a value. */
export type Updater<T> = (value: T) => T; type Updater<T> = (value: T) => T;
/** /**
* Start and stop notification callbacks. * Start and stop notification callbacks.
@ -2172,13 +2188,13 @@ declare module 'svelte/store' {
* @returns Optionally, a cleanup function that is called when the last remaining * @returns Optionally, a cleanup function that is called when the last remaining
* subscriber unsubscribes. * subscriber unsubscribes.
*/ */
export type StartStopNotifier<T> = ( type StartStopNotifier<T> = (
set: (value: T) => void, set: (value: T) => void,
update: (fn: Updater<T>) => void update: (fn: Updater<T>) => void
) => void | (() => void); ) => void | (() => void);
/** Readable interface for subscribing. */ /** Readable interface for subscribing. */
export interface Readable<T> { interface Readable<T> {
/** /**
* Subscribe on value changes. * Subscribe on value changes.
* @param run subscription callback * @param run subscription callback
@ -2188,7 +2204,7 @@ declare module 'svelte/store' {
} }
/** Writable interface for both updating and subscribing. */ /** Writable interface for both updating and subscribing. */
export interface Writable<T> extends Readable<T> { interface Writable<T> extends Readable<T> {
/** /**
* Set value and inform subscribers. * Set value and inform subscribers.
* @param value to set * @param value to set
@ -2219,49 +2235,49 @@ declare module 'svelte/store' {
* https://svelte.dev/docs/svelte-store#readable * https://svelte.dev/docs/svelte-store#readable
* @param value initial value * @param value initial value
* */ * */
export function readable<T>(value?: T | undefined, start?: StartStopNotifier<T> | undefined): Readable<T>; function readable<T>(value?: T | undefined, start?: StartStopNotifier<T> | undefined): Readable<T>;
export function safe_not_equal(a: any, b: any): boolean;
/** /**
* Create a `Writable` store that allows both updating and reading by subscription. * Create a `Writable` store that allows both updating and reading by subscription.
* *
* https://svelte.dev/docs/svelte-store#writable * https://svelte.dev/docs/svelte-store#writable
* @param value initial value * @param value initial value
* */ * */
export function writable<T>(value?: T | undefined, start?: StartStopNotifier<T> | undefined): Writable<T>; function writable<T>(value?: T | undefined, start?: StartStopNotifier<T> | undefined): Writable<T>;
/** /**
* Derived value store by synchronizing one or more readable stores and * Derived value store by synchronizing one or more readable stores and
* applying an aggregation function over its input values. * applying an aggregation function over its input values.
* *
* https://svelte.dev/docs/svelte-store#derived * https://svelte.dev/docs/svelte-store#derived
* */ * */
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => Unsubscriber | void, initial_value?: T | undefined): Readable<T>; function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => Unsubscriber | void, initial_value?: T | undefined): Readable<T>;
/** /**
* Derived value store by synchronizing one or more readable stores and * Derived value store by synchronizing one or more readable stores and
* applying an aggregation function over its input values. * applying an aggregation function over its input values.
* *
* https://svelte.dev/docs/svelte-store#derived * https://svelte.dev/docs/svelte-store#derived
* */ * */
export function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>) => T, initial_value?: T | undefined): Readable<T>; function derived<S extends Stores, T>(stores: S, fn: (values: StoresValues<S>) => T, initial_value?: T | undefined): Readable<T>;
/** /**
* Takes a store and returns a new one derived from the old one that is readable. * Takes a store and returns a new one derived from the old one that is readable.
* *
* https://svelte.dev/docs/svelte-store#readonly * https://svelte.dev/docs/svelte-store#readonly
* @param store - store to make readonly * @param store - store to make readonly
* */ * */
export function readonly<T>(store: Readable<T>): Readable<T>; function readonly<T>(store: Readable<T>): Readable<T>;
/** /**
* Get the current value from a store by subscribing and immediately unsubscribing. * Get the current value from a store by subscribing and immediately unsubscribing.
* *
* https://svelte.dev/docs/svelte-store#get * https://svelte.dev/docs/svelte-store#get
* */ * */
export function get<T>(store: Readable<T>): T; function get<T>(store: Readable<T>): T;
export { Subscriber, Unsubscriber, Updater, StartStopNotifier, Readable, Writable, readable, writable, derived, readonly, get };
} }
declare module 'svelte/transition' { declare module 'svelte/transition' {
export type EasingFunction = (t: number) => number; type EasingFunction = (t: number) => number;
export interface TransitionConfig { interface TransitionConfig {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
@ -2269,7 +2285,7 @@ declare module 'svelte/transition' {
tick?: (t: number, u: number) => void; tick?: (t: number, u: number) => void;
} }
export interface BlurParams { interface BlurParams {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
@ -2277,13 +2293,13 @@ declare module 'svelte/transition' {
opacity?: number; opacity?: number;
} }
export interface FadeParams { interface FadeParams {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
} }
export interface FlyParams { interface FlyParams {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
@ -2292,14 +2308,14 @@ declare module 'svelte/transition' {
opacity?: number; opacity?: number;
} }
export interface SlideParams { interface SlideParams {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
axis?: 'x' | 'y'; axis?: 'x' | 'y';
} }
export interface ScaleParams { interface ScaleParams {
delay?: number; delay?: number;
duration?: number; duration?: number;
easing?: EasingFunction; easing?: EasingFunction;
@ -2307,14 +2323,14 @@ declare module 'svelte/transition' {
opacity?: number; opacity?: number;
} }
export interface DrawParams { interface DrawParams {
delay?: number; delay?: number;
speed?: number; speed?: number;
duration?: number | ((len: number) => number); duration?: number | ((len: number) => number);
easing?: EasingFunction; easing?: EasingFunction;
} }
export interface CrossfadeParams { interface CrossfadeParams {
delay?: number; delay?: number;
duration?: number | ((len: number) => number); duration?: number | ((len: number) => number);
easing?: EasingFunction; easing?: EasingFunction;
@ -2324,37 +2340,37 @@ declare module 'svelte/transition' {
* *
* https://svelte.dev/docs/svelte-transition#blur * https://svelte.dev/docs/svelte-transition#blur
* */ * */
export function blur(node: Element, { delay, duration, easing, amount, opacity }?: BlurParams | undefined): TransitionConfig; function blur(node: Element, { delay, duration, easing, amount, opacity }?: BlurParams | undefined): TransitionConfig;
/** /**
* Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions. * Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions.
* *
* https://svelte.dev/docs/svelte-transition#fade * https://svelte.dev/docs/svelte-transition#fade
* */ * */
export function fade(node: Element, { delay, duration, easing }?: FadeParams | undefined): TransitionConfig; function fade(node: Element, { delay, duration, easing }?: FadeParams | undefined): TransitionConfig;
/** /**
* Animates the x and y positions and the opacity of an element. `in` transitions animate from the provided values, passed as parameters to the element's default values. `out` transitions animate from the element's default values to the provided values. * Animates the x and y positions and the opacity of an element. `in` transitions animate from the provided values, passed as parameters to the element's default values. `out` transitions animate from the element's default values to the provided values.
* *
* https://svelte.dev/docs/svelte-transition#fly * https://svelte.dev/docs/svelte-transition#fly
* */ * */
export function fly(node: Element, { delay, duration, easing, x, y, opacity }?: FlyParams | undefined): TransitionConfig; function fly(node: Element, { delay, duration, easing, x, y, opacity }?: FlyParams | undefined): TransitionConfig;
/** /**
* Slides an element in and out. * Slides an element in and out.
* *
* https://svelte.dev/docs/svelte-transition#slide * https://svelte.dev/docs/svelte-transition#slide
* */ * */
export function slide(node: Element, { delay, duration, easing, axis }?: SlideParams | undefined): TransitionConfig; function slide(node: Element, { delay, duration, easing, axis }?: SlideParams | undefined): TransitionConfig;
/** /**
* Animates the opacity and scale of an element. `in` transitions animate from an element's current (default) values to the provided values, passed as parameters. `out` transitions animate from the provided values to an element's default values. * Animates the opacity and scale of an element. `in` transitions animate from an element's current (default) values to the provided values, passed as parameters. `out` transitions animate from the provided values to an element's default values.
* *
* https://svelte.dev/docs/svelte-transition#scale * https://svelte.dev/docs/svelte-transition#scale
* */ * */
export function scale(node: Element, { delay, duration, easing, start, opacity }?: ScaleParams | undefined): TransitionConfig; function scale(node: Element, { delay, duration, easing, start, opacity }?: ScaleParams | undefined): TransitionConfig;
/** /**
* Animates the stroke of an SVG element, like a snake in a tube. `in` transitions begin with the path invisible and draw the path to the screen over time. `out` transitions start in a visible state and gradually erase the path. `draw` only works with elements that have a `getTotalLength` method, like `<path>` and `<polyline>`. * Animates the stroke of an SVG element, like a snake in a tube. `in` transitions begin with the path invisible and draw the path to the screen over time. `out` transitions start in a visible state and gradually erase the path. `draw` only works with elements that have a `getTotalLength` method, like `<path>` and `<polyline>`.
* *
* https://svelte.dev/docs/svelte-transition#draw * https://svelte.dev/docs/svelte-transition#draw
* */ * */
export function draw(node: SVGElement & { function draw(node: SVGElement & {
getTotalLength(): number; getTotalLength(): number;
}, { delay, speed, duration, easing }?: DrawParams | undefined): TransitionConfig; }, { delay, speed, duration, easing }?: DrawParams | undefined): TransitionConfig;
/** /**
@ -2362,13 +2378,15 @@ declare module 'svelte/transition' {
* *
* https://svelte.dev/docs/svelte-transition#crossfade * https://svelte.dev/docs/svelte-transition#crossfade
* */ * */
export function crossfade({ fallback, ...defaults }: CrossfadeParams & { function crossfade({ fallback, ...defaults }: CrossfadeParams & {
fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig; fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;
}): [(node: any, params: CrossfadeParams & { }): [(node: any, params: CrossfadeParams & {
key: any; key: any;
}) => () => TransitionConfig, (node: any, params: CrossfadeParams & { }) => () => TransitionConfig, (node: any, params: CrossfadeParams & {
key: any; key: any;
}) => () => TransitionConfig]; }) => () => TransitionConfig];
export { EasingFunction, TransitionConfig, BlurParams, FadeParams, FlyParams, SlideParams, ScaleParams, DrawParams, CrossfadeParams, blur, fade, fly, slide, scale, draw, crossfade };
} }
declare module 'svelte/events' { declare module 'svelte/events' {
@ -2378,27 +2396,29 @@ declare module 'svelte/events' {
* (with attributes like `onclick`), which use event delegation for performance reasons * (with attributes like `onclick`), which use event delegation for performance reasons
* *
* */ * */
export function on<Element extends HTMLElement, Type extends keyof HTMLElementEventMap>(element: Element, type: Type, handler: (this: Element, event: HTMLElementEventMap[Type]) => any, options?: AddEventListenerOptions | undefined): () => void; function on<Element extends HTMLElement, Type extends keyof HTMLElementEventMap>(element: Element, type: Type, handler: (this: Element, event: HTMLElementEventMap[Type]) => any, options?: AddEventListenerOptions | undefined): () => void;
/** /**
* Attaches an event handler to an element and returns a function that removes the handler. Using this * Attaches an event handler to an element and returns a function that removes the handler. Using this
* rather than `addEventListener` will preserve the correct order relative to handlers added declaratively * rather than `addEventListener` will preserve the correct order relative to handlers added declaratively
* (with attributes like `onclick`), which use event delegation for performance reasons * (with attributes like `onclick`), which use event delegation for performance reasons
* *
* */ * */
export function on(element: EventTarget, type: string, handler: EventListener, options?: AddEventListenerOptions | undefined): () => void; function on(element: EventTarget, type: string, handler: EventListener, options?: AddEventListenerOptions | undefined): () => void;
export { on };
} }
declare module 'svelte/types/compiler/preprocess' { declare module 'svelte/types/compiler/preprocess' {
/** @deprecated import this from 'svelte/preprocess' instead */ /** @deprecated import this from 'svelte/preprocess' instead */
export type MarkupPreprocessor = MarkupPreprocessor_1; type MarkupPreprocessor = MarkupPreprocessor_1;
/** @deprecated import this from 'svelte/preprocess' instead */ /** @deprecated import this from 'svelte/preprocess' instead */
export type Preprocessor = Preprocessor_1; type Preprocessor = Preprocessor_1;
/** @deprecated import this from 'svelte/preprocess' instead */ /** @deprecated import this from 'svelte/preprocess' instead */
export type PreprocessorGroup = PreprocessorGroup_1; type PreprocessorGroup = PreprocessorGroup_1;
/** @deprecated import this from 'svelte/preprocess' instead */ /** @deprecated import this from 'svelte/preprocess' instead */
export type Processed = Processed_1; type Processed = Processed_1;
/** @deprecated import this from 'svelte/preprocess' instead */ /** @deprecated import this from 'svelte/preprocess' instead */
export type SveltePreprocessor<PreprocessorType extends keyof PreprocessorGroup_1, Options = any> = SveltePreprocessor_1< type SveltePreprocessor<PreprocessorType extends keyof PreprocessorGroup_1, Options = any> = SveltePreprocessor_1<
PreprocessorType, PreprocessorType,
Options Options
>; >;
@ -2482,14 +2502,16 @@ declare module 'svelte/types/compiler/preprocess' {
> { > {
(options?: Options): Required<Pick<PreprocessorGroup_1, PreprocessorType>>; (options?: Options): Required<Pick<PreprocessorGroup_1, PreprocessorType>>;
} }
export { MarkupPreprocessor, Preprocessor, PreprocessorGroup, Processed, SveltePreprocessor };
} }
declare module 'svelte/types/compiler/interfaces' { declare module 'svelte/types/compiler/interfaces' {
import type { Location } from 'locate-character'; import type { Location } from 'locate-character';
/** @deprecated import this from 'svelte' instead */ /** @deprecated import this from 'svelte' instead */
export type CompileOptions = CompileOptions_1; type CompileOptions = CompileOptions_1;
/** @deprecated import this from 'svelte' instead */ /** @deprecated import this from 'svelte' instead */
export type Warning = Warning_1; type Warning = Warning_1;
interface Warning_1 { interface Warning_1 {
start?: Location; start?: Location;
end?: Location; end?: Location;
@ -2660,6 +2682,8 @@ declare module 'svelte/types/compiler/interfaces' {
* (also see https://github.com/sveltejs/svelte/pull/5652) * (also see https://github.com/sveltejs/svelte/pull/5652)
*/ */
type Namespace = 'html' | 'svg' | 'mathml' | 'foreign'; type Namespace = 'html' | 'svg' | 'mathml' | 'foreign';
export { CompileOptions, Warning };
}declare module '*.svelte' { }declare module '*.svelte' {
// use prettier-ignore for a while because of https://github.com/sveltejs/language-tools/commit/026111228b5814a9109cc4d779d37fb02955fb8b // use prettier-ignore for a while because of https://github.com/sveltejs/language-tools/commit/026111228b5814a9109cc4d779d37fb02955fb8b
// prettier-ignore // prettier-ignore

@ -121,8 +121,8 @@ importers:
specifier: ^5.0.4 specifier: ^5.0.4
version: 5.0.4 version: 5.0.4
dts-buddy: dts-buddy:
specifier: ^0.4.7 specifier: ^0.5.0
version: 0.4.7(typescript@5.5.2) version: 0.5.0(typescript@5.5.2)
esbuild: esbuild:
specifier: ^0.19.11 specifier: ^0.19.11
version: 0.19.11 version: 0.19.11
@ -2315,8 +2315,8 @@ packages:
resolution: {integrity: sha512-HTlk5nmhkm8F6JcdXvHIzaorzCoziNQT9mGxLPVXW8wJF1TiGSL60ZGB4gHWabHOaMmWmhvk2/lPHfnBiT78AQ==} resolution: {integrity: sha512-HTlk5nmhkm8F6JcdXvHIzaorzCoziNQT9mGxLPVXW8wJF1TiGSL60ZGB4gHWabHOaMmWmhvk2/lPHfnBiT78AQ==}
engines: {node: '>=12'} engines: {node: '>=12'}
dts-buddy@0.4.7: dts-buddy@0.5.0:
resolution: {integrity: sha512-trSY5EWkWWKov9uf9nTPjmEoiIcrYPpNEVCu75drPX9Fus3OwQzN/WNXyO+w7cMteBrUqSoExAAud1KCzYv0SQ==} resolution: {integrity: sha512-bKyWCdyt8Yd2bjZX6hKldUFt3SpLPjxw6lQwWHKY1szGxEfRUPWMc76SHtNT+m2aTCI3Zqw3CXhtjw2vKadFnQ==}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
typescript: '>=5.0.4 <5.5' typescript: '>=5.0.4 <5.5'
@ -7152,17 +7152,17 @@ snapshots:
dotenv@16.3.2: {} dotenv@16.3.2: {}
dts-buddy@0.4.7(typescript@5.5.2): dts-buddy@0.5.0(typescript@5.5.2):
dependencies: dependencies:
'@jridgewell/source-map': 0.3.5 '@jridgewell/source-map': 0.3.5
'@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/sourcemap-codec': 1.4.15
globrex: 0.1.2 globrex: 0.1.2
kleur: 4.1.5 kleur: 4.1.5
locate-character: 3.0.0 locate-character: 3.0.0
magic-string: 0.30.5 magic-string: 0.30.9
sade: 1.8.1 sade: 1.8.1
tiny-glob: 0.2.9 tiny-glob: 0.2.9
ts-api-utils: 1.0.3(typescript@5.5.2) ts-api-utils: 1.3.0(typescript@5.5.2)
typescript: 5.5.2 typescript: 5.5.2
eastasianwidth@0.2.0: {} eastasianwidth@0.2.0: {}

Loading…
Cancel
Save