UNPKG

628 BTypeScriptView Raw
1import { AsyncPredicate, Predicate } from '@naturalcycles/js-lib';
2import { TransformOptions, TransformTyped } from '../stream.model';
3/**
4 * Note, that currently it's NOT concurrent! (concurrency = 1)
5 * So, it's recommended to use transformMap instead, that is both concurrent and has
6 * filtering feature by default.
7 */
8export declare function transformFilter<IN = any>(predicate: AsyncPredicate<IN>, opt?: TransformOptions): TransformTyped<IN, IN>;
9/**
10 * Sync version of `transformFilter`
11 */
12export declare function transformFilterSync<IN = any>(predicate: Predicate<IN>, opt?: TransformOptions): TransformTyped<IN, IN>;