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