@@ -7,7 +7,9 @@ describe('React', () => {
77 test ( 'should connect state and actions to stateless components' , ( ) => {
88 expect . assertions ( 2 )
99 let didCallAction = false
10- const doThis : Action = ( ) => ( didCallAction = true )
10+ const doThis : Action = ( ) => {
11+ didCallAction = true
12+ }
1113
1214 const config = {
1315 state : {
@@ -29,7 +31,8 @@ describe('React', () => {
2931
3032 const app = new Overmind ( config )
3133
32- interface Action < Input = void > extends IAction < IConfig , Input > { }
34+ interface Action < Input = void , Output = void | Promise < void > >
35+ extends IAction < IConfig , Input , Output > { }
3336
3437 const connect = createConnect ( app )
3538
@@ -47,7 +50,9 @@ describe('React', () => {
4750 test ( 'should connect actions and state to class components' , ( ) => {
4851 expect . assertions ( 2 )
4952 let didCallAction = false
50- const doThis : Action = ( ) => ( didCallAction = true )
53+ const doThis : Action = ( ) => {
54+ didCallAction = true
55+ }
5156 const config = {
5257 state : {
5358 foo : 'bar' ,
@@ -68,7 +73,8 @@ describe('React', () => {
6873
6974 const app = new Overmind ( config )
7075
71- interface Action < Input = void > extends IAction < IConfig , Input > { }
76+ interface Action < Input = void , Output = void | Promise < void > >
77+ extends IAction < IConfig , Input , Output > { }
7278
7379 const connect = createConnect ( app )
7480
0 commit comments