Commit 73c8297
committed
Changing subscribe's return type in Reducer
Changed the return type of subscribe(listener: Function) since redux
defines it as "Unsubscribe". Although using Function works, it may result
in TypeScript errors in certain use cases.
http://redux.js.org/docs/api/Store.html#subscribe1 parent 645eae2 commit 73c8297
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments