Skip to content

Commit

Permalink
fix(typings): watch() returns an unwatch function (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
FOODy authored and ktsn committed Aug 28, 2017
1 parent 80b856a commit a4bd081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export declare class Store<S> {
commit: Commit;

subscribe<P extends MutationPayload>(fn: (mutation: P, state: S) => any): () => void;
watch<T>(getter: (state: S) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): void;
watch<T>(getter: (state: S) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void;

registerModule<T>(path: string, module: Module<T, S>): void;
registerModule<T>(path: string[], module: Module<T, S>): void;
Expand Down

0 comments on commit a4bd081

Please sign in to comment.