Skip to content

Commit

Permalink
fix(effects): Add deprecation notice for ofType instance operator
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Aug 1, 2018
1 parent 232ca7a commit 830c8fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/effects/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export class Actions<V = Action> extends Observable<V> {
return observable;
}

/**
* @deprecated from 6.1.0. Use the pipeable `ofType` operator instead.
*/
ofType<V2 extends V = V>(...allowedTypes: string[]): Actions<V2> {
return ofType<any>(...allowedTypes)(this as Actions<any>) as Actions<V2>;
}
Expand Down

0 comments on commit 830c8fa

Please sign in to comment.