From 2c2d6298310defba505816aa603ca787829e8b0e Mon Sep 17 00:00:00 2001 From: Vitalij R <151868+FOODy@users.noreply.github.com> Date: Mon, 28 Aug 2017 15:17:25 +0200 Subject: [PATCH] fix(typings): watch() returns an unwatch function --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index b2a21f0db..f482095c8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -18,7 +18,7 @@ export declare class Store { commit: Commit; subscribe

(fn: (mutation: P, state: S) => any): () => void; - watch(getter: (state: S) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): void; + watch(getter: (state: S) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void; registerModule(path: string, module: Module): void; registerModule(path: string[], module: Module): void;