UNPKG

553 BTypeScriptView Raw
1import { AsyncIterableX } from '../../asynciterable/asynciterablex';
2/**
3 * @ignore
4 */
5export declare function findProto<T, S extends T>(this: AsyncIterableX<T>, predicate: (value: T, index: number) => value is S, thisArg?: any): Promise<S | undefined>;
6export declare function findProto<T>(this: AsyncIterableX<T>, predicate: (value: T, index: number) => boolean | Promise<boolean>, thisArg?: any): Promise<T | undefined>;
7declare module '../../asynciterable/asynciterablex' {
8 interface AsyncIterableX<T> {
9 find: typeof findProto;
10 }
11}