We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80b856a commit a4bd081Copy full SHA for a4bd081
types/index.d.ts
@@ -18,7 +18,7 @@ export declare class Store<S> {
18
commit: Commit;
19
20
subscribe<P extends MutationPayload>(fn: (mutation: P, state: S) => any): () => void;
21
- 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;
22
23
registerModule<T>(path: string, module: Module<T, S>): void;
24
registerModule<T>(path: string[], module: Module<T, S>): void;
0 commit comments