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