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

Scaffold a TypeScript App Easy

Create a typescript app with a powerful template. Latest version: 1.1.0, last published: 27 minutes ago. Start using @muriukivincent/create-ts-app in your project by running `npm i @muriukivincent/create-ts-app`. There are no other projects in the npm reg... (more…)

Read more »

TypeScript 4.4

Today we’re excited to announce the availability of TypeScript 4.4! If you haven’t heard of TypeScript yet, it’s a language that builds on JavaScript by adding syntax for static types. Tools like the TypeScript compiler just erase those types, leaving you... (more…)

Read more »