Skip to content
Browse files

feat(ofType): `ofType()` TypeScript overload that permits narrowing t…

…he filtered actions type `action$.ofType<SomeNarrowAction>(someType);` (#312) (#370)
  • Loading branch information
Jonas Chapuis authored and jayphelps committed Nov 28, 2017
1 parent 36189c2 commit 5b62ac5bf12288beb97d769715da401890373130
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.d.ts
@@ -26,6 +26,7 @@ export declare class ActionsObservable<T extends Action> extends Observable<T> {
lift<R extends Action>(operator: Operator<T, R>): ActionsObservable<R>;
lift<R>(operator: Operator<T, R>): Observable<R>;
ofType(...key: T['type'][]): ActionsObservable<T>;
ofType<R extends Action = T>(...key: T['type'][]): ActionsObservable<R>;

export declare interface Epic<T extends Action, S, D = any> {

0 comments on commit 5b62ac5

Please sign in to comment.