UNPKG

ix

Version:

The Interactive Extensions for JavaScript

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