Types

Overview

JavaScript is a loosely typed and dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and re-assigned) values of all types.

This library attempts to list the built-in data structures available in JavaScript along with its type tags.

Signature

declare type ITypeTags = {
[key in Types | NestedTypes]: Tags
}

Constants

export const ALL_TYPES = [
'AbortController',
'AbortSignal',
'AggregateError',
'Arguments',
'Array',
'ArrayIterator',
'ArrayBuffer',
'AsyncFunction',
'AsyncGenerator',
'AsyncGeneratorFunction',
'Atomics',
'BigInt',
'BigInt64Array',
'BigUint64Array',
'Boolean',
'Console',
'DataView',
'Date',
'Error',
'EvalError',
'FinalizationRegistry',
'Float32Array',
'Float64Array',
'Function',
'Generator',
'GeneratorFunction',
'GlobalThis',
'Global',
'Infinity',
'Int8Array',
'Int16Array',
'Int32Array',
'Intl',
'Intl.Collator',
'Intl.DateTimeFormat',
'Intl.ListFormat',
'Intl.Locale',
'Intl.NumberFormat',
'Intl.PluralRules',
'Intl.RelativeTimeFormat',
'JSON',
'Map',
'MapIterator',
'Math',
'NaN',
'Null',
'Number',
'Object',
'Process',
'Promise',
'RangeError',
'ReferenceError',
'RegExp',
'Reflect',
'Set',
'SetIterator',
'SharedArrayBuffer',
'String',
'StringIterator',
'Symbol',
'SyntaxError',
'TextDecoder',
'TextEncoder',
'TypeError',
'Uint8Array',
'Uint8ClampedArray',
'Uint16Array',
'Uint32Array',
'Undefined',
'URIError',
'URL',
'URLSearchParams',
'WeakMap',
'WeakRef',
'WeakSet',
'WebAssembly',
'WebAssembly.Module',
'WebAssembly.Global',
'WebAssembly.Instance',
'WebAssembly.Memory',
'WebAssembly.Table',
'WebAssembly.CompileError',
'WebAssembly.LinkError',
'WebAssembly.RuntimeError',
]