UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

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