Typescript String, Boolean, Number & Enum Literal types
TypeScript Literal Types restrict the value of a variable to finite valid values. The latest version of Typescript supports the following Literal Types. String Literal Types,Numeric Literal Types,Boolean Literal Types & Enum Literal Types. This is very useful feature which restrict the possible values, that you can store in a variable
Typescript String, Boolean, Number & Enum Literal types Read More »