Home > @skunkteam/types > BasicType
Basic categories of types.
Signature:
type BasicType = 'string' | 'number' | 'bigint' | 'boolean' | 'function' | 'object' | 'array' | 'symbol' | 'undefined' | 'null';
Mostly follows the result of the typeof
operator, with two exceptions:
-
null
values are not reported asobject
, but have their own category:null
-
Arrays have their own category:
array
.