of-type-operator
A module for add ofType method to RxJS's Observable. It inspired by redux-observable.
usage
;; const YOUR_ACTION_TYPE = "YOUR_ACTION_TYPE";interface YourPayload {} // this operator always expect `Observable<Action>` type.const action$: Observable<Action<YourPayload>> = ; // if you don't want annotate source Observable(like `action$: Observable<Action>`), import module is only necessary to add this operator.; const payload$ = action$ ofType<YourPayload>YOUR_ACTION_TYPE // log your payload ; // if your action incompatible with Action type, you can pass pickBy function to pick for your own type.const payload$ = action$ ofType<YourPayload>YOUR_ACTION_TYPE actionyourSpecficProperty // log your payload ;