File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/shared/watchIgnorable Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ import { bypassFilter, createFilterWrapper } from '../utils'
9
9
// Extended watch that exposes a ignoreUpdates(updater) function that allows to update the source without triggering effects
10
10
11
11
export type IgnoredUpdater = ( updater : ( ) => void ) => void
12
+ export type IgnoredPrevAsyncUpdates = ( ) => void
12
13
13
14
export interface WatchIgnorableReturn {
14
15
ignoreUpdates : IgnoredUpdater
15
- ignorePrevAsyncUpdates : ( ) => void
16
+ ignorePrevAsyncUpdates : IgnoredPrevAsyncUpdates
16
17
stop : WatchStopHandle
17
18
}
18
19
@@ -36,8 +37,8 @@ export function watchIgnorable<Immediate extends Readonly<boolean> = false>(
36
37
)
37
38
38
39
let ignoreUpdates : IgnoredUpdater
39
- let ignorePrevAsyncUpdates : ( ) => void
40
- let stop : ( ) => void
40
+ let ignorePrevAsyncUpdates : IgnoredPrevAsyncUpdates
41
+ let stop : WatchStopHandle
41
42
42
43
if ( watchOptions . flush === 'sync' ) {
43
44
let ignore = false
You can’t perform that action at this time.
0 commit comments