import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { forkJoin } from '../../asynciterable/forkjoin.js'; /** * @ignore */ export function forkJoinProto( this: AsyncIterableX, source2: AsyncIterable ): Promise<[T, T2] | undefined>; export function forkJoinProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable ): Promise<[T, T2, T3] | undefined>; export function forkJoinProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable ): Promise<[T, T2, T3, T4] | undefined>; export function forkJoinProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable, source5: AsyncIterable ): Promise<[T, T2, T3, T4, T5] | undefined>; export function forkJoinProto( this: AsyncIterableX, source2: AsyncIterable, source3: AsyncIterable, source4: AsyncIterable, source5: AsyncIterable, source6: AsyncIterable ): Promise<[T, T2, T3, T4, T5, T6] | undefined>; export function forkJoinProto( this: AsyncIterableX, ...sources: AsyncIterable[] ): Promise; export function forkJoinProto( this: AsyncIterableX, ...args: any[] ): Promise { return forkJoin(...[this, ...args]); } AsyncIterableX.prototype.forkJoin = forkJoinProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { forkJoin: typeof forkJoinProto; } }