Skip to content

Commit 5141666

Browse files
Rich-Harristrueadm
authored andcommitted
fix: update links in JSDoc (#14165)
1 parent a1f7ab1 commit 5141666

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/rotten-toys-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: update links in JSDoc

packages/svelte/src/transition/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function assign(tar, src) {
209209
}
210210

211211
/**
212-
* 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.
212+
* 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.
213213
*
214214
* @param {CrossfadeParams & {
215215
* fallback?: (node: Element, params: CrossfadeParams, intro: boolean) => TransitionConfig;

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ declare module 'svelte/transition' {
19531953
getTotalLength(): number;
19541954
}, { delay, speed, duration, easing }?: DrawParams | undefined): TransitionConfig;
19551955
/**
1956-
* 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.
1956+
* 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.
19571957
*
19581958
* */
19591959
export function crossfade({ fallback, ...defaults }: CrossfadeParams & {

0 commit comments

Comments
 (0)