Skip to content

Commit 7706abd

Browse files
authored
Merge pull request #173 from dawidzq/feature/change-subscribe-return-type
Changing subscribe's return type in Reducer
2 parents 645eae2 + 73c8297 commit 7706abd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Unsubscribe } from 'redux';
2+
13
declare namespace ngRedux {
24
export interface Reducer extends Function {
35
(state: any, action: any): any;
@@ -21,7 +23,7 @@ declare namespace ngRedux {
2123
replaceReducer(nextReducer: Reducer): void;
2224
dispatch(action: any): any;
2325
getState(): any;
24-
subscribe(listener: Function): Function;
26+
subscribe(listener: Function): Unsubscribe;
2527
connect(
2628
mapStateToTarget: (state: any) => Object,
2729
mapDispatchToTarget?: Object | ((dispatch: Function) => Object)

0 commit comments

Comments
 (0)