docs: fix broken links (#13944)

pull/13949/head
Ben McCann 2 months ago committed by GitHub
parent b6fccdb4f7
commit c93a645b68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: update broken links

@ -14,7 +14,7 @@ import { lifecycle_outside_component } from './internal/shared/errors.js';
* *
* If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted. * If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
* *
* `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api). * `onMount` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
* *
* @template T * @template T
* @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn * @param {() => NotFunction<T> | Promise<NotFunction<T>> | (() => any)} fn
@ -64,7 +64,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
} }
/** /**
* 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/svelte/legacy-on#Component-events).
* Event dispatchers are functions that can take two arguments: `name` and `detail`. * Event dispatchers are functions that can take two arguments: `name` and `detail`.
* *
* Component events created with `createEventDispatcher` create a * Component events created with `createEventDispatcher` create a

@ -354,7 +354,7 @@ declare module 'svelte' {
* *
* If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted. * If a function is returned _synchronously_ from `onMount`, it will be called when the component is unmounted.
* *
* `onMount` does not run inside a [server-side component](https://svelte.dev/docs#run-time-server-side-component-api). * `onMount` does not run inside [server-side components](https://svelte.dev/docs/svelte/svelte-server#render).
* *
* */ * */
export function onMount<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void; export function onMount<T>(fn: () => NotFunction<T> | Promise<NotFunction<T>> | (() => any)): void;
@ -367,7 +367,7 @@ declare module 'svelte' {
* */ * */
export function onDestroy(fn: () => any): void; export 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/svelte/legacy-on#Component-events).
* Event dispatchers are functions that can take two arguments: `name` and `detail`. * Event dispatchers are functions that can take two arguments: `name` and `detail`.
* *
* Component events created with `createEventDispatcher` create a * Component events created with `createEventDispatcher` create a

Loading…
Cancel
Save