File tree Expand file tree Collapse file tree 3 files changed +10
-2813
lines changed Expand file tree Collapse file tree 3 files changed +10
-2813
lines changed Original file line number Diff line number Diff line change 69
69
"eslint-config-airbnb" : " 1.0.2" ,
70
70
"eslint-plugin-react" : " ^4.1.0" ,
71
71
"mocha" : " ^2.2.5" ,
72
- "redux" : " 4.0.0-beta.2 " ,
72
+ "redux" : " ~ 4.0.0" ,
73
73
"rimraf" : " ^2.5.2" ,
74
- "typescript" : " ~2.6.0 " ,
74
+ "typescript" : " ~2.6.2 " ,
75
75
"typings-tester" : " ^0.3.1" ,
76
76
"webpack" : " ^1.12.14"
77
77
}
Original file line number Diff line number Diff line change @@ -39,10 +39,17 @@ function testGetState(): ThunkResult<void> {
39
39
// typings:expect-error
40
40
dispatch ( { type : 'BAZ' } ) ;
41
41
// Can dispatch another thunk action
42
- dispatch ( testGetState ( ) ) ;
42
+ dispatch ( anotherThunkAction ( ) ) ;
43
43
} ;
44
44
}
45
45
46
+ function anotherThunkAction ( ) : ThunkResult < string > {
47
+ return ( dispatch , getState ) => {
48
+ dispatch ( { type : 'FOO' } ) ;
49
+ return 'hello' ;
50
+ }
51
+ }
52
+
46
53
store . dispatch ( { type : 'FOO' } ) ;
47
54
// typings:expect-error
48
55
store . dispatch ( { type : 'BAR' } )
You can’t perform that action at this time.
0 commit comments