UNPKG

deox

Version:

Functional Type-safe Flux Standard Utilities

20 lines (19 loc) 712 B
import { ActionCreator } from './create-action-creator'; import { AnyAction } from './create-action'; import { ExtractAction } from './types'; /** * Filter actions emitted by the source Observable by only emitting those that * are compatible with specified action(s) or action creator(s) or action type(s). * * @example * action$.pipe( * ofType(foo), * ... * ) * @example * action$.pipe( * ofType([foo, bar]), * ... * ) */ export declare function ofType<TSource extends AnyAction, TKey extends string | TSource | ActionCreator<TSource>, TSink extends TSource = ExtractAction<TSource, TKey>>(keys: TKey | ReadonlyArray<TKey>): import("rxjs/internal/types").OperatorFunction<TSource, TSink>;