Type of thread checking action $ observed

Is it possible to check the type of stream in observable? I use revx-observable to create epics that follow the actions to be submitted, and if there is a match, they run some asynchronous code. The action$ argument for the epic is observable, but there seems to be no Observable<> type in Flow. How to properly assign the action$ stream type?

 // @ flow const fetchApiEpic = (action$) => { ... }; 

action$ content:

enter image description here

+7
observable redux-observable flowtype flow-typed
source share
1 answer

Of course, a stream like RxJS and redux-observable is possible, but none of the libraries currently provide official type definitions for them, so you will need to find communities (if any) or create your own.

Flow-typed projects contain informal type definitions for RxJS v5, but not for observable subject to reduction. You can use the TypeScript definition for it as a reference if you want to create your own.

+5
source share

All Articles