We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 645eae2 + 73c8297 commit 7706abdCopy full SHA for 7706abd
index.d.ts
@@ -1,3 +1,5 @@
1
+import { Unsubscribe } from 'redux';
2
+
3
declare namespace ngRedux {
4
export interface Reducer extends Function {
5
(state: any, action: any): any;
@@ -21,7 +23,7 @@ declare namespace ngRedux {
21
23
replaceReducer(nextReducer: Reducer): void;
22
24
dispatch(action: any): any;
25
getState(): any;
- subscribe(listener: Function): Function;
26
+ subscribe(listener: Function): Unsubscribe;
27
connect(
28
mapStateToTarget: (state: any) => Object,
29
mapDispatchToTarget?: Object | ((dispatch: Function) => Object)
0 commit comments