Skip to content

Commit 734c1a8

Browse files
committed
regenerate types
1 parent 45fc9db commit 734c1a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/svelte/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ declare module 'svelte/motion' {
20752075
* @param run subscription callback
20762076
* @param invalidate cleanup callback
20772077
*/
2078-
subscribe(this: void, run: Subscriber<T>, invalidate?: Invalidator<T>): Unsubscriber;
2078+
subscribe(this: void, run: Subscriber<T>, invalidate?: Invalidator): Unsubscriber;
20792079
}
20802080
interface SpringOpts {
20812081
stiffness?: number;
@@ -2097,7 +2097,7 @@ declare module 'svelte/motion' {
20972097
interpolate?: (a: T, b: T) => (t: number) => T;
20982098
}
20992099
/** Cleanup logic callback. */
2100-
type Invalidator<T> = (value?: T) => void;
2100+
type Invalidator = () => void;
21012101
/**
21022102
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
21032103
*
@@ -2221,7 +2221,7 @@ declare module 'svelte/store' {
22212221
* @param run subscription callback
22222222
* @param invalidate cleanup callback
22232223
*/
2224-
subscribe(this: void, run: Subscriber<T>, invalidate?: Invalidator<T>): Unsubscriber;
2224+
subscribe(this: void, run: Subscriber<T>, invalidate?: Invalidator): Unsubscriber;
22252225
}
22262226

22272227
/** Writable interface for both updating and subscribing. */
@@ -2239,7 +2239,7 @@ declare module 'svelte/store' {
22392239
update(this: void, updater: Updater<T>): void;
22402240
}
22412241
/** Cleanup logic callback. */
2242-
type Invalidator<T> = (value?: T) => void;
2242+
type Invalidator = () => void;
22432243

22442244
/** One or more `Readable`s. */
22452245
type Stores = Readable<any> | [Readable<any>, ...Array<Readable<any>>] | Array<Readable<any>>;

0 commit comments

Comments
 (0)