UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

12 lines (11 loc) 805 B
import { AsyncIterableX } from '../asynciterablex'; import { OperatorAsyncFunction } from '../../interfaces'; export declare class FilterAsyncIterable<TSource> extends AsyncIterableX<TSource> { private _source; private _predicate; private _thisArg; constructor(source: Iterable<TSource | PromiseLike<TSource>> | AsyncIterable<TSource>, predicate: (value: TSource, index: number) => boolean | Promise<boolean>, thisArg?: any); [Symbol.asyncIterator](): AsyncGenerator<TSource, void, unknown>; } export declare function filter<T, S extends T>(predicate: (value: T, index: number) => value is S, thisArg?: any): OperatorAsyncFunction<T, S>; export declare function filter<T>(predicate: (value: T, index: number) => boolean | Promise<boolean>, thisArg?: any): OperatorAsyncFunction<T, T>;