import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { toArray } from '../../asynciterable/toarray.js'; /** * @ignore */ export function toArrayProto(this: AsyncIterableX): Promise { return toArray(this); } AsyncIterableX.prototype.toArray = toArrayProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { toArray: typeof toArrayProto; } }