types: add missing properties to ComponentPublicInstance interface (#218)

This commit is contained in:
Cr
2019-10-12 22:30:21 +08:00
committed by Evan You
parent 4a100828de
commit f3760f7d34
2 changed files with 7 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ export function instanceWatch(
source: string | Function,
cb: Function,
options?: WatchOptions
): () => void {
): StopHandle {
const ctx = this.renderProxy!
const getter = isString(source) ? () => ctx[source] : source.bind(ctx)
const stop = watch(getter, cb.bind(ctx), options)