From c93a645b68659c5d1a6f2851b9f115285c146805 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:59:39 -0700 Subject: [PATCH] docs: fix broken links (#13944) --- .changeset/soft-snails-retire.md | 5 +++++ packages/svelte/src/index-client.js | 4 ++-- packages/svelte/types/index.d.ts | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/soft-snails-retire.md diff --git a/.changeset/soft-snails-retire.md b/.changeset/soft-snails-retire.md new file mode 100644 index 0000000000..2d8a7efb6a --- /dev/null +++ b/.changeset/soft-snails-retire.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix: update broken links diff --git a/packages/svelte/src/index-client.js b/packages/svelte/src/index-client.js index 2916aaecb1..1b6175c948 100644 --- a/packages/svelte/src/index-client.js +++ b/packages/svelte/src/index-client.js @@ -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. * - * `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 * @param {() => NotFunction | Promise> | (() => 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`. * * Component events created with `createEventDispatcher` create a diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index c7794d5b0e..c07eeedb37 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -354,7 +354,7 @@ declare module 'svelte' { * * 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(fn: () => NotFunction | Promise> | (() => any)): void; @@ -367,7 +367,7 @@ declare module 'svelte' { * */ 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`. * * Component events created with `createEventDispatcher` create a