Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/
Variadic Tuple Types (Supported)
typeStrings=[string,string];typeNumbers=number[]// [string, string, ...Array<number | boolean>]typeUnbounded=[...Strings, ...Numbers,boolean];
This is already supported at the AST level - this is a type functionality change only.
Labelled Tuple Elements (Supported#2378)
typeFoo=[first:number,second?:string, ...rest:any[]];
This requires AST updates.
Short-Circuiting Assignment Operators (Supported#2307)
// "Or Or Equals" (or, the Mallet operator :wink:)a||=b;// "And And Equals"a&&=b;// "QQ Equals"a??=b;
This requires AST updates.
AST:estree/estree#212
unknown oncatch Clause Bindings (Supported#2306)
try{// ...}catch(e:unknown){// ...}
This requires AST updates