consider syntax for tuple literals: (['a', 2]) // [string, number] #9217
Closed
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
Metadata
Assignees
Labels
No labels