Primitives#
Type |
Notes |
|---|---|
|
any string. Literal types narrow further ( |
|
64-bit IEEE 754 float; includes |
|
arbitrary-precision integer. |
|
|
|
separate types; |
|
unique primitive identifier. |
|
the absence of a return value; not the same as |
|
the empty type; what a function returns if it always throws or never terminates. |
|
opt-out of type checking. Avoid |
|
top type; must be narrowed before use. |