Skip to content

wevu / index / watch

函数: watch()

调用签名

watch<T>(source, cb, options?): WatchStopHandle

定义于: packages/wevu/src/reactivity/watch.ts:37

类型参数

T

T

参数

source

WatchSource<T>

cb

(value, oldValue, onCleanup) => void

options?

WatchOptions

返回

WatchStopHandle

调用签名

watch<T>(source, cb, options?): WatchStopHandle

定义于: packages/wevu/src/reactivity/watch.ts:42

类型参数

T

T extends object

参数

source

T extends readonly any[] ? never : T

cb

(value, oldValue, onCleanup) => void

options?

WatchOptions

返回

WatchStopHandle

调用签名

watch<T>(source, cb, options?): WatchStopHandle

定义于: packages/wevu/src/reactivity/watch.ts:47

类型参数

T

T extends readonly WatchSource<any>[]

参数

source

T

cb

(value, oldValue, onCleanup) => void

options?

WatchOptions

返回

WatchStopHandle

Released under the MIT License.