Skip to content

Commit

Permalink
chore(types/merge): fix return type for merge with 5, 6 args (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgadelha authored Dec 29, 2023
1 parent f07b7ef commit 9932fe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/asynciterable/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function merge<T, T2, T3, T4>(
* @param {AsyncIterable<T3>} v3 The third async-iterable source to merge.
* @param {AsyncIterable<T4>} v4 The fourth async-iterable source to merge.
* @param {AsyncIterable<T5>} v5 The fifth async-iterable source to merge.
* @returns {(AsyncIterable<T | T2 | T3 | T4 | T5>)} The merged elements from all of the specified async-iterable sequences
* @returns {(AsyncIterableX<T | T2 | T3 | T4 | T5>)} The merged elements from all of the specified async-iterable sequences
* into a single async-iterable sequence.
*/
export function merge<T, T2, T3, T4, T5>(
Expand All @@ -122,7 +122,7 @@ export function merge<T, T2, T3, T4, T5>(
v3: AsyncIterable<T3>,
v4: AsyncIterable<T4>,
v5: AsyncIterable<T5>
): AsyncIterable<T | T2 | T3 | T4 | T5>;
): AsyncIterableX<T | T2 | T3 | T4 | T5>;
/**
* Merges elements from all of the specified async-iterable sequences into a single async-iterable sequence.
*
Expand All @@ -138,7 +138,7 @@ export function merge<T, T2, T3, T4, T5>(
* @param {AsyncIterable<T4>} v4 The fourth async-iterable source to merge.
* @param {AsyncIterable<T5>} v5 The fifth async-iterable source to merge.
* @param {AsyncIterable<T6>} v6 The sixth async-iterable source to merge.
* @returns {(AsyncIterable<T | T2 | T3 | T4 | T5 | T6>)} The merged elements from all of the specified async-iterable sequences
* @returns {(AsyncIterableX<T | T2 | T3 | T4 | T5 | T6>)} The merged elements from all of the specified async-iterable sequences
* into a single async-iterable sequence.
*/
export function merge<T, T2, T3, T4, T5, T6>(
Expand All @@ -148,7 +148,7 @@ export function merge<T, T2, T3, T4, T5, T6>(
v4: AsyncIterable<T4>,
v5: AsyncIterable<T5>,
v6: AsyncIterable<T6>
): AsyncIterable<T | T2 | T3 | T4 | T5 | T6>;
): AsyncIterableX<T | T2 | T3 | T4 | T5 | T6>;
/**
* Merges elements from all of the specified async-iterable sequences into a single async-iterable sequence.
*
Expand Down

0 comments on commit 9932fe8

Please sign in to comment.