Skip to content

Commit 55c13b2

Browse files
maxime1992MikeRyanDev
authored andcommitted
feat(Effects): Add generic type to the "ofType" operator
1 parent 8ce0b06 commit 55c13b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/effects/src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Actions<V = Action> extends Observable<V> {
2121
return observable;
2222
}
2323

24-
ofType(...allowedTypes: string[]): Actions<V> {
24+
ofType<V2 extends V = V>(...allowedTypes: string[]): Actions<V2> {
2525
return filter.call(this, (action: Action) =>
2626
allowedTypes.some(type => type === action.type)
2727
);

0 commit comments

Comments
 (0)