UNPKG

384 BTypeScriptView Raw
1import { AsyncIterableX } from './asynciterablex';
2export declare function partition<T, S extends T>(source: AsyncIterable<T>, predicate: (value: T, index: number) => value is S, thisArg?: any): AsyncIterableX<S>[];
3export declare function partition<T>(source: AsyncIterable<T>, predicate: (value: T, index: number) => boolean | Promise<boolean>, thisArg?: any): AsyncIterableX<T>[];