UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

12 lines (11 loc) 532 B
import { AsyncIterableX } from '../../asynciterable/asynciterablex'; /** * @ignore */ export declare function singleProto<T, S extends T>(this: AsyncIterableX<T>, predicate: (value: T, index: number) => value is S): Promise<S | undefined>; export declare function singleProto<T>(this: AsyncIterableX<T>, predicate?: (value: T, index: number) => boolean | Promise<boolean>): Promise<T | undefined>; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX<T> { single: typeof singleProto; } }