Skip to content

Commit 293fefb

Browse files
committed
fix: generate types
1 parent e1e3bbf commit 293fefb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/svelte/types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,17 +434,17 @@ declare module 'svelte' {
434434
* @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead
435435
* */
436436
export function afterUpdate(fn: () => void): void;
437-
/**
438-
* Synchronously flush any pending updates.
439-
* Returns void if no callback is provided, otherwise returns the result of calling the callback.
440-
* */
441-
export function flushSync<T = void>(fn?: (() => T) | undefined): T;
442437
type Getters<T> = {
443438
[K in keyof T]: () => T[K];
444439
};
445440
export interface StateOptions {
446441
onchange?: () => unknown;
447442
}
443+
/**
444+
* Synchronously flush any pending updates.
445+
* Returns void if no callback is provided, otherwise returns the result of calling the callback.
446+
* */
447+
export function flushSync<T = void>(fn?: (() => T) | undefined): T;
448448
/**
449449
* Create a snippet programmatically
450450
* */

0 commit comments

Comments
 (0)