11import type { MapOldSources , MapSources , MultiWatchSources } from '@vueuse/shared'
22import type { Observable , Subscription } from 'rxjs'
3- import type { WatchOptions , WatchSource , WatchStopHandle } from 'vue'
3+ import type { WatchHandle , WatchOptions , WatchSource } from 'vue'
44import { tryOnScopeDispose } from '@vueuse/shared'
55import { watch } from 'vue'
66
@@ -27,7 +27,7 @@ export function watchExtractedObservable<
2727 callback : ( snapshot : E ) => void ,
2828 subscriptionOptions ?: WatchExtractedObservableOptions ,
2929 watchOptions ?: WatchOptions < Immediate >
30- ) : WatchStopHandle
30+ ) : WatchHandle
3131
3232// overload: multiple sources w/ `as const`
3333// watch([foo, bar] as const, () => {})
@@ -46,7 +46,7 @@ export function watchExtractedObservable<
4646 callback : ( snapshot : E ) => void ,
4747 subscriptionOptions ?: WatchExtractedObservableOptions ,
4848 watchOptions ?: WatchOptions < Immediate >
49- ) : WatchStopHandle
49+ ) : WatchHandle
5050
5151// overload: single source + cb
5252export function watchExtractedObservable <
@@ -63,7 +63,7 @@ export function watchExtractedObservable<
6363 callback : ( snapshot : E ) => void ,
6464 subscriptionOptions ?: WatchExtractedObservableOptions ,
6565 watchOptions ?: WatchOptions < Immediate >
66- ) : WatchStopHandle
66+ ) : WatchHandle
6767
6868// overload: watching reactive object w/ cb
6969export function watchExtractedObservable <
@@ -80,7 +80,7 @@ export function watchExtractedObservable<
8080 callback : ( snapshot : E ) => void ,
8181 subscriptionOptions ?: WatchExtractedObservableOptions ,
8282 watchOptions ?: WatchOptions < Immediate >
83- ) : WatchStopHandle
83+ ) : WatchHandle
8484
8585// implementation
8686export function watchExtractedObservable < T = any , E = unknown , Immediate extends Readonly < boolean > = false > (
@@ -89,7 +89,7 @@ export function watchExtractedObservable<T = any, E = unknown, Immediate extends
8989 callback : ( snapshot : E ) => void ,
9090 subscriptionOptions ?: WatchExtractedObservableOptions ,
9191 watchOptions ?: WatchOptions < Immediate > ,
92- ) : WatchStopHandle {
92+ ) : WatchHandle {
9393 let subscription : Subscription | undefined
9494
9595 tryOnScopeDispose ( ( ) => {
0 commit comments