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

mergeStatic() does not work with arbitrary amount of parameters #246

Open
felixfbecker opened this issue Dec 5, 2018 · 0 comments
Open

Comments

@felixfbecker
Copy link

felixfbecker commented Dec 5, 2018

IxJS version:

Code to reproduce:

let arr: AsyncIterable<any>[]
mergeStatic(...arr)

Expected behavior:
Should compile

Actual behavior:
Fails with

[ts] Expected 1-6 arguments, but got 0 or more. [2556]
merge.ts(86, 32): An argument for 'v1' was not provided.

Additional information:
Workaround: use new MergeAsyncIterable(arr)

@felixfbecker felixfbecker changed the title mergeStatic() does not work with 0 parameters (and therefor not with spreaded arrays) mergeStatic() does not work with arbitrary amount of parameters Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant