-
Notifications
You must be signed in to change notification settings - Fork 12.8k
strict function type does not handle spread arguments #20645
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
Comments
This isn't a |
Alright, you are saying this valid javascript is not accepted in typescript in strict mode? And also that it is a feature? |
This isn't related to the |
The code was more of a demonstration, of course the point with that constructor was to make something happen, and in many cases you don't really need to care about the arguments and thus you use spread operator. The demonstration might as well be proxying two functions and it would produce the same error. But so far I get that this is indeed intentional from typescript and this was actually a aware decision you made...which bring this issue to it's conclusion so you can close this at your discretion. |
TypeScript Version: 2.7.0-dev.20171212 and 2.6.2
Code
Expected behavior:
No errors.
Actual behavior:
at Super => Expected 2 arguments, but got 0 or more.
The text was updated successfully, but these errors were encountered: