Last updated 3 years ago
Was this helpful?
primitives: string, number, boolean
string
number
boolean
any (disable type checking)
any
Array<T> === T[]
Array<T>
T[]
Cheat sheet
type annotation
type predicate
Narrowing
Object
unknown, never, void
interface