Skip to content


feat(ofType): ofType() TypeScript overload that permits narrowing t…
Browse files Browse the repository at this point in the history
…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 5b62ac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Expand Up @@ -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> {
Expand Down

0 comments on commit 5b62ac5

Please sign in to comment.