TypeScript 2.0: More Literal Types

TypeScript 2.0 introduces more literal types. In addition to string literal types, we can now declare boolean, numeric, and enum literal types.

Similar