UNPKG

603 BTypeScriptView Raw
1import { AsyncPredicate, Predicate } from '@naturalcycles/js-lib';
2import { TransformOptions, TransformTyped } from '../stream.model';
3import { TransformMapOptions } from './transformMap';
4/**
5 * Just a convenience wrapper around `transformMap` that has built-in predicate filtering support.
6 */
7export declare function transformFilter<IN = any>(predicate: AsyncPredicate<IN>, opt?: TransformMapOptions): TransformTyped<IN, IN>;
8/**
9 * Sync version of `transformFilter`
10 */
11export declare function transformFilterSync<IN = any>(predicate: Predicate<IN>, opt?: TransformOptions): TransformTyped<IN, IN>;