import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { ExpandAsyncIterable } from '../../asynciterable/operators/expand.js'; /** * @ignore */ export function expandProto( this: AsyncIterableX, selector: (value: T, signal?: AbortSignal) => AsyncIterable | Promise> ) { return new ExpandAsyncIterable(this, selector); } AsyncIterableX.prototype.expand = expandProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { expand: typeof expandProto; } }