Title: consider syntax for tuple literals: (['a', 2]) // [string, number] · Issue #9217 · microsoft/TypeScript · GitHub
Open Graph Title: consider syntax for tuple literals: (['a', 2]) // [string, number] · Issue #9217 · microsoft/TypeScript
X Title: consider syntax for tuple literals: (['a', 2]) // [string, number] · Issue #9217 · microsoft/TypeScript
Description: Problem There is no way to get a tuple value without explicit type annotation: var tuple = ['hey', 1]; // (string|number)[] Solution Add new syntax for tuple literals: var tuple = (['hey', 1]); // [string, number] related #9216
Open Graph Description: Problem There is no way to get a tuple value without explicit type annotation: var tuple = ['hey', 1]; // (string|number)[] Solution Add new syntax for tuple literals: var tuple = (['hey', 1]); // ...
X Description: Problem There is no way to get a tuple value without explicit type annotation: var tuple = ['hey', 1]; // (string|number)[] Solution Add new syntax for tuple literals: var tuple = (['he...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9217
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"consider syntax for tuple literals: (['a', 2]) // [string, number]","articleBody":"### Problem\n\nThere is no way to get a tuple value without explicit type annotation:\n\n``` typescript\nvar tuple = ['hey', 1]; // (string|number)[]\n```\n### Solution\n\nAdd new syntax for tuple literals:\n\n``` typescript\nvar tuple = (['hey', 1]); // [string, number]\n```\n\nrelated https://github.com/Microsoft/TypeScript/issues/9216\n","author":{"url":"https://github.com/zpdDG4gta8XKpMCd","@type":"Person","name":"zpdDG4gta8XKpMCd"},"datePublished":"2016-06-16T13:01:21Z","url":"https://github.com/microsoft/TypeScript/issues/9217"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d369b7e9-3369-b07d-14f9-b2c033e1fcd6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2FA:1DCB8C:B00717:EA995A:6B00EC97 |
| html-safe-nonce | 0c6ed426c9849715d414c59176187619b0924f739543de771cca67b4dc1d85f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkZBOjFEQ0I4QzpCMDA3MTc6RUE5OTVBOjZCMDBFQzk3IiwidmlzaXRvcl9pZCI6IjE4NzMyMjU1ODM5NDE0NDY4MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ca0b4b535cd0460b634198ed0b91ba0164875c528f15a8b2de46c1b20371faa1 |
| hovercard-subject-tag | issue:160655984 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/9217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8c2438c61c02bf78bf6d98a0c05a5f3d37b2aa2eecec363f29cc2f45164fdd9/microsoft/TypeScript/issues/9217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8c2438c61c02bf78bf6d98a0c05a5f3d37b2aa2eecec363f29cc2f45164fdd9/microsoft/TypeScript/issues/9217 |
| og:image:alt | Problem There is no way to get a tuple value without explicit type annotation: var tuple = ['hey', 1]; // (string|number)[] Solution Add new syntax for tuple literals: var tuple = (['hey', 1]); // ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zpdDG4gta8XKpMCd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width