We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
this
this.$watch
1 parent 93b8ff9 commit aa757e8Copy full SHA for aa757e8
packages/runtime-core/src/componentPublicInstance.ts
@@ -1,6 +1,6 @@
1
import { ComponentInternalInstance, Data } from './component'
2
import { nextTick, queueJob } from './scheduler'
3
-import { instanceWatch } from './apiWatch'
+import { instanceWatch, WatchOptions, WatchStopHandle } from './apiWatch'
4
import {
5
EMPTY_OBJ,
6
hasOwn,
@@ -162,7 +162,11 @@ export type ComponentPublicInstance<
162
$options: Options
163
$forceUpdate: ReactiveEffect
164
$nextTick: typeof nextTick
165
- $watch: typeof instanceWatch
+ $watch(
166
+ source: string | Function,
167
+ cb: Function,
168
+ options?: WatchOptions
169
+ ): WatchStopHandle
170
} & P &
171
ShallowUnwrapRef<B> &
172
D &
0 commit comments