TypeScript 2.1: Improved Inference for Literal Types

TypeScript 2.1 improves inference for literal types. Constant variables and read-only properties with literal initializers are now inferred to be of a literal type.

Similar

TypeScript 3.9 Beta

Today we’re announcing the availabilty of TypeScript 3.9 Beta! To get started using the beta, you can get it through NuGet, or use npm with the following command: npm install typescript@beta You can also get editor support by Downloading for Visual Stu... (more…)

Read more »