import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { doWhile } from '../../asynciterable/operators/dowhile.js'; /** * @ignore */ export function doWhileProto( this: AsyncIterableX, condition: () => boolean | Promise ): AsyncIterableX { return doWhile(condition)(this); } AsyncIterableX.prototype.doWhile = doWhileProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { doWhile: typeof doWhileProto; } }