@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
12 lines (11 loc) • 553 B
TypeScript
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
/**
* @ignore
*/
export declare function findProto<T, S extends T>(this: AsyncIterableX<T>, predicate: (value: T, index: number) => value is S, thisArg?: any): Promise<S | undefined>;
export declare function findProto<T>(this: AsyncIterableX<T>, predicate: (value: T, index: number) => boolean | Promise<boolean>, thisArg?: any): Promise<T | undefined>;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
find: typeof findProto;
}
}