TypeScript supports all JavaScript primitive types plus additional ones:
string
: Text datanumber
: Numeric values (integers and floats)boolean
: True/false valuesnull
: Intentional absence of valueundefined
: Uninitialized valuesymbol
: Unique identifiersbigint
: Large integersvoid
: Absence of return valuenever
: Values that never occurany
: Disables type checkingunknown
: Type-safe alternative to any