import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { findIndex } from '../../asynciterable/findindex.js'; import { FindOptions } from '../../asynciterable/findoptions.js'; /** * @ignore */ export function findIndexProto( this: AsyncIterable, options: FindOptions ): Promise { return findIndex(this, options); } AsyncIterableX.prototype.findIndex = findIndexProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { findIndex: typeof findIndexProto; } }