File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ function process_effects(effect) {
820
820
* Returns void if no callback is provided, otherwise returns the result of calling the callback.
821
821
* @template [T=void]
822
822
* @param {(() => T) | undefined } [fn]
823
- * @returns {T extends void ? void : T }
823
+ * @returns {T }
824
824
*/
825
825
export function flushSync ( fn ) {
826
826
var result ;
@@ -839,7 +839,7 @@ export function flushSync(fn) {
839
839
flush_tasks ( ) ;
840
840
}
841
841
842
- return /** @type {T extends void ? void : T } */ ( result ) ;
842
+ return /** @type {T } */ ( result ) ;
843
843
}
844
844
845
845
/**
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ declare module 'svelte' {
421
421
* Synchronously flush any pending updates.
422
422
* Returns void if no callback is provided, otherwise returns the result of calling the callback.
423
423
* */
424
- export function flushSync < T = void > ( fn ?: ( ( ) => T ) | undefined ) : T extends void ? void : T ;
424
+ export function flushSync < T = void > ( fn ?: ( ( ) => T ) | undefined ) : T ;
425
425
/**
426
426
* Returns a promise that resolves once any pending state changes have been applied.
427
427
* */
You can’t perform that action at this time.
0 commit comments