We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
ts stable & nightly
Playground Link
// The last comes first type T1 = [1][any]; // 1 type T2 = [1, 2][any]; // 2 | 1 type T3 = [1, 2, 3][any]; // 3 | 1 | 2 type T4 = [1, 2, 3, 4][any]; // 4 | 1 | 2 | 3 type T5 = [1, 2, 3, 4, 5][any]; // 5 | 1 | 2 | 3 | 4
In this snippet, a Tuple's last member always comes first in unions between its values
type T2 = [1, 2, 3][any]; // 1 | 2 | 3
The text was updated successfully, but these errors were encountered:
Essentially a duplicate of #17944.
Sorry, something went wrong.
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
No branches or pull requests
Bug Report
🕗 Version & Regression Information
ts stable & nightly
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
In this snippet, a Tuple's last member always comes first in unions between its values
🙂 Expected behavior
The text was updated successfully, but these errors were encountered: