Like any other languages, TypeScript types are divided into different categories. All types in TypeScript are subtypes of a single top type called the Any type.
any type to hold any type that are assigning dynamically.
The other types in TypeScript are categorized into
The primitive types includes Number, Boolean, String, Symbol, Void, Null, and Undefined types along with user defined enum types. Each primitive type uses specific keywords in programming such as number, boolean, string, symbol, and void respectively.
number datatype is a primitive type and represents double-precision or floating point values.
string datatype, like other languages is used to hold text data with double quotes (") or single quotes (') to surround text data.
symbol datatype is primitive type and represents unique tokens that may be used as keys for object properties.
void datatype is represent absence of having any type and commonly used as return type.
null datatype is references the one and only value of the Null type and considered a valid value for all primitive types.
undefined datatype is used to uninitialized variables.
enum datatype, like other languages, is used to give more friendly names to sets of numeric values.
Other types are covered in other sections