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