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
TypeScript 4.0: Allow spread in the middle of tuples #11753
TypeScript 4.0: Allow spread in the middle of tuples #11753
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 97c649a:
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/24777/ |
@weswigham @ahejlsberg anything special here? Looks reasonable to me |
Only question I'd have is if this plays well with the labeled tuple member support. |
There is a disable test in the other PR to test the integration between these 👍 |
I'm merging this to a |
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#variadic-tuple-types
Example:
Note: currently the node is called
TSRestType
and notTSSpreadType
. I think we should rename it in the future.Merged to #11760, not landed in
main
yet.