File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import { RootSagaContext } from '../src/sagas';
1212
1313export class AsyncSaga {
1414 private channel : MulticastChannel < AnyAction > ;
15- private dispatches : ( AnyAction | END ) [ ] ;
16- private takers : { put : ( action : AnyAction | END ) => void } [ ] ;
15+ private dispatches : AnyAction [ ] ;
16+ private takers : { put : ( action : AnyAction ) => void } [ ] ;
1717 private state : RootState ;
1818 private task : Task ;
1919
@@ -51,7 +51,7 @@ export class AsyncSaga {
5151 // completed later
5252 return new Promise ( ( resolve , reject ) => {
5353 this . takers . push ( {
54- put : ( a : AnyAction | END ) : void => {
54+ put : ( a : AnyAction ) : void => {
5555 if ( a . type === END . type ) {
5656 reject ( ) ;
5757 } else {
@@ -85,7 +85,7 @@ export class AsyncSaga {
8585 }
8686 }
8787
88- private dispatch ( action : AnyAction | END ) : AnyAction | END {
88+ private dispatch ( action : AnyAction ) : AnyAction {
8989 const taker = this . takers . shift ( ) ;
9090 if ( taker === undefined ) {
9191 // if there are no takers waiting, the queue the action
You can’t perform that action at this time.
0 commit comments