From 02ba39b32604e50d015275c4b663e36771bd51e4 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 5 Nov 2024 13:47:49 -0500 Subject: [PATCH] fix: update links in JSDoc --- .changeset/rotten-toys-fix.md | 5 +++++ packages/svelte/src/transition/index.js | 2 +- packages/svelte/types/index.d.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/rotten-toys-fix.md diff --git a/.changeset/rotten-toys-fix.md b/.changeset/rotten-toys-fix.md new file mode 100644 index 000000000000..fdaff54c1b4d --- /dev/null +++ b/.changeset/rotten-toys-fix.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: update links in JSDoc diff --git a/packages/svelte/src/transition/index.js b/packages/svelte/src/transition/index.js index 3978d088a37c..8cc054cba22b 100644 --- a/packages/svelte/src/transition/index.js +++ b/packages/svelte/src/transition/index.js @@ -209,7 +209,7 @@ function assign(tar, src) { } /** - * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used. + * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs/svelte/transition) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used. * * @param {CrossfadeParams & { * fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig; diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index ca67923ee183..00ba2556d9a1 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -1947,7 +1947,7 @@ declare module 'svelte/transition' { getTotalLength(): number; }, { delay, speed, duration, easing }?: DrawParams | undefined): TransitionConfig; /** - * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs#template-syntax-element-directives-transition-fn) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used. + * The `crossfade` function creates a pair of [transitions](https://svelte.dev/docs/svelte/transition) called `send` and `receive`. When an element is 'sent', it looks for a corresponding element being 'received', and generates a transition that transforms the element to its counterpart's position and fades it out. When an element is 'received', the reverse happens. If there is no counterpart, the `fallback` transition is used. * * */ export function crossfade({ fallback, ...defaults }: CrossfadeParams & {