We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
act
1 parent c0ff791 commit 38f7518Copy full SHA for 38f7518
types/index.d.ts
@@ -60,7 +60,8 @@ export type FireObject = {
60
export const fireEvent: FireFunction & FireObject;
61
62
/**
63
- * Calls a function or resolves a Promise and notifies Svelte to immediately flushes any pending
64
- * state changes.
+ * Calls a function and notifies Svelte to flush any pending state changes.
+ *
65
+ * If the function returns a Promise, that Promise will be resolved first.
66
*/
-export function act(fn?: Function | Promise<any>): Promise<void>
67
+export function act(fn?: () => unknown): Promise<void>
0 commit comments