Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(types/merge): fix return type for merge with 5, 6 args #355

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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