-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Get another function's parameter types for use in another function's rest parameter #58991
Comments
You forgot to fill out the issue template completely. The code does not show any error in the playground. |
I tried in ts playground, it works fine. |
Properties and methods have different variance when |
playground |
π Search Terms
Rest parameter
π Version & Regression Information
TypeScript Version 5.5.2
β― Playground Link
No response
π» Code
π Actual behavior
βreport at A : Rest parameter must be an array type or a generic with array constraint
π Expected behavior
It can infer another function's params tuple as a rest param type
Additional information about the issue
#29919 seems similar
found in stackoverflow https://stackoverflow.com/questions/76772628/get-another-functions-parameter-types-for-use-in-another-functions-rest-par
The text was updated successfully, but these errors were encountered: