import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { defaultIfEmpty } from '../../asynciterable/operators/defaultifempty.js'; /** * @ignore */ export function defaultIfEmptyProto( this: AsyncIterableX, defaultValue: T ): AsyncIterableX { return defaultIfEmpty(defaultValue)(this); } AsyncIterableX.prototype.defaultIfEmpty = defaultIfEmptyProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { defaultIfEmpty: typeof defaultIfEmptyProto; } }