File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 * */
You can’t perform that action at this time.
0 commit comments