-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Type] cannot subscribe observable from array of promise's concatAll() #1436
Comments
I've thought this bit more and start to think this is somewhat expected, since via @david-driscoll - would you mind share opinion here? I looked into RxJS 4's type definition and seems it behaves similar. |
The signature for
Ideally we could do something like:
The problem is, with TypeScript anyway, there is no way to make a specific prototype method have a different generic constraint than the class it's attached to. So in this scenario the only thing we can do is to return T and assume To help with this problem, we can certainly make the interface a little better, so that the manual type can be given.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
won't be allowed as
This issue does not affect operator behavior.
The text was updated successfully, but these errors were encountered: