This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Action} from '@ngrx/store'; // from //third_party/javascript/ngrx:ngrx_store | |
import {OperatorFunction} from 'rxjs'; | |
import {filter} from 'rxjs/operators'; | |
// Removes types from T that are not assignable to U. | |
export type Filter<T, U> = T extends U ? T : never; | |
/** | |
* Equivalent to the `ofType` operator provided by @ngrx/effects, but with | |
* smarter type inference. |