Skip to content

Commit

Permalink
feat(Effects): Add generic type to the "ofType" operator
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime1992 authored and MikeRyanDev committed Jul 20, 2017
1 parent 8ce0b06 commit 55c13b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/effects/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Actions<V = Action> extends Observable<V> {
return observable;
}

ofType(...allowedTypes: string[]): Actions<V> {
ofType<V2 extends V = V>(...allowedTypes: string[]): Actions<V2> {
return filter.call(this, (action: Action) =>
allowedTypes.some(type => type === action.type)
);
Expand Down

0 comments on commit 55c13b2

Please sign in to comment.