-
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
Generic type inference failure when multiple type provided (with typescript) #584
Comments
I'm looking into this to try resolve. |
Course caller can explicitly cast like |
Can you write |
Yes, that works too. Snippet I took is exaggerated examples of casting hassle. Still it'd be better wouldn't require explicit casting, not sure if it's achievable along with generic based type-safety. |
I don't think that |
Ok, closing now. |
Writing below code via ES5 with commonjs,
Rx.Observable.of(1, 'a').subscribe(console.log);
will be executed with below results
though some editors might complain by type inference failure.
if same code is written in typescript, now those complaint becomes build time failure
Somewhat related to issue #581, not directly though.
The text was updated successfully, but these errors were encountered: