From 590eb66f7b4c678745e8d44a5cf800ede4b5589a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 28 Sep 2024 15:31:03 -0400 Subject: [PATCH] regenerate --- packages/svelte/src/version.js | 1 + packages/svelte/types/index.d.ts | 157 ++++++------------------------- 2 files changed, 31 insertions(+), 127 deletions(-) diff --git a/packages/svelte/src/version.js b/packages/svelte/src/version.js index 541f6b29f9..8fb7aae746 100644 --- a/packages/svelte/src/version.js +++ b/packages/svelte/src/version.js @@ -3,6 +3,7 @@ /** * The current version, as set in package.json. * + * https://svelte.dev/docs/svelte-compiler#svelte-version * @type {string} */ export const VERSION = '5.0.0-next.259'; diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index c33e5bfea2..22b47d35ec 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -314,7 +314,6 @@ declare module 'svelte' { * * `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api). * - * https://svelte.dev/docs/svelte#onmount * */ export function onMount(fn: () => NotFunction | Promise> | (() => any)): void; /** @@ -323,7 +322,6 @@ declare module 'svelte' { * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the * only one that runs inside a server-side component. * - * https://svelte.dev/docs/svelte#ondestroy * */ export function onDestroy(fn: () => any): void; /** @@ -345,7 +343,6 @@ declare module 'svelte' { * }>(); * ``` * - * 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 * */ export function createEventDispatcher = any>(): EventDispatcher; @@ -356,7 +353,6 @@ declare module 'svelte' { * * In runes mode use `$effect.pre` instead. * - * https://svelte.dev/docs/svelte#beforeupdate * @deprecated Use `$effect.pre` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * */ export function beforeUpdate(fn: () => void): void; @@ -367,7 +363,6 @@ declare module 'svelte' { * * In runes mode use `$effect` instead. * - * https://svelte.dev/docs/svelte#afterupdate * @deprecated Use `$effect` instead — see https://svelte-5-preview.vercel.app/docs/deprecations#beforeupdate-and-afterupdate * */ export function afterUpdate(fn: () => void): void; @@ -441,7 +436,6 @@ declare module 'svelte' { * Retrieves the context that belongs to the closest parent component with the specified `key`. * Must be called during component initialisation. * - * https://svelte.dev/docs/svelte#getcontext * */ export function getContext(key: any): T; /** @@ -451,14 +445,12 @@ declare module 'svelte' { * * Like lifecycle functions, this must be called during component initialisation. * - * https://svelte.dev/docs/svelte#setcontext * */ export function setContext(key: any, context: T): T; /** * Checks whether a given `key` has been set in the context of a parent component. * Must be called during component initialisation. * - * https://svelte.dev/docs/svelte#hascontext * */ export function hasContext(key: any): boolean; /** @@ -466,7 +458,6 @@ declare module 'svelte' { * Must be called during component initialisation. Useful, for example, if you * programmatically create a component and want to pass the existing context to it. * - * https://svelte.dev/docs/svelte#getallcontexts * */ export function getAllContexts = Map>(): T; type Getters = { @@ -502,8 +493,6 @@ declare module 'svelte/action' { * }; * } * ``` - * - * Docs: https://svelte.dev/docs/svelte-action */ export interface ActionReturn< Parameter = undefined, @@ -533,8 +522,6 @@ declare module 'svelte/action' { * * You can return an object with methods `update` and `destroy` from the function and type which additional attributes and events it has. * See interface `ActionReturn` for more details. - * - * Docs: https://svelte.dev/docs/svelte-action */ export interface Action< Element = HTMLElement, @@ -573,7 +560,6 @@ declare module 'svelte/animate' { * The flip function calculates the start and end position of an element and animates between them, translating the x and y values. * `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/). * - * https://svelte.dev/docs/svelte-animate#flip * */ export function flip(node: Element, { from, to }: { from: DOMRect; @@ -590,7 +576,6 @@ declare module 'svelte/compiler' { /** * `compile` converts your `.svelte` source code into a JavaScript module that exports a component * - * https://svelte.dev/docs/svelte-compiler#svelte-compile * @param source The component source code * @param options The compiler options * */ @@ -598,7 +583,6 @@ declare module 'svelte/compiler' { /** * `compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module. * - * https://svelte.dev/docs/svelte-compiler#svelte-compile * @param source The component source code * */ export function compileModule(source: string, options: ModuleCompileOptions): CompileResult; @@ -608,7 +592,6 @@ declare module 'svelte/compiler' { * The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST. * `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7. * - * https://svelte.dev/docs/svelte-compiler#svelte-parse * */ export function parse(source: string, options: { filename?: string; @@ -620,7 +603,6 @@ declare module 'svelte/compiler' { * The `modern` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST. * `modern` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7. * - * https://svelte.dev/docs/svelte-compiler#svelte-parse * */ export function parse(source: string, options?: { filename?: string; @@ -1267,7 +1249,6 @@ declare module 'svelte/compiler' { * The preprocess function provides convenient hooks for arbitrarily transforming component source code. * For example, it can be used to convert a