From 293fefb10baec8b6f308497365440ca2f57c6e75 Mon Sep 17 00:00:00 2001 From: paoloricciuti Date: Fri, 18 Jul 2025 08:42:07 +0200 Subject: [PATCH] fix: generate types --- packages/svelte/types/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index 794de45244..5182cf9b15 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -434,17 +434,17 @@ declare module 'svelte' { * @deprecated Use [`$effect`](https://svelte.dev/docs/svelte/$effect) instead * */ export function afterUpdate(fn: () => void): void; - /** - * Synchronously flush any pending updates. - * Returns void if no callback is provided, otherwise returns the result of calling the callback. - * */ - export function flushSync(fn?: (() => T) | undefined): T; type Getters = { [K in keyof T]: () => T[K]; }; export interface StateOptions { onchange?: () => unknown; } + /** + * Synchronously flush any pending updates. + * Returns void if no callback is provided, otherwise returns the result of calling the callback. + * */ + export function flushSync(fn?: (() => T) | undefined): T; /** * Create a snippet programmatically * */