Skip to content

Commit

Permalink
fix(Effects): Use Actions generic type for the return of the ofType o…
Browse files Browse the repository at this point in the history
…perator
  • Loading branch information
vigneshnrfs authored and MikeRyanDev committed Jul 12, 2017
1 parent 84beffe commit d176a11
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 {
ofType(...allowedTypes: string[]): Actions<V> {
return filter.call(this, (action: Action) =>
allowedTypes.some(type => type === action.type),
);
Expand Down

0 comments on commit d176a11

Please sign in to comment.