@n3okill/utils
Version:
Many javascript helpers
37 lines (36 loc) • 1.05 kB
TypeScript
export type TObjectKey = string | symbol | number;
export type TObject = Record<TObjectKey, unknown>;
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | BigUint64ArrayConstructor | BigInt64ArrayConstructor;
export type Primitive = string | number | bigint | boolean | symbol | undefined | null;
/**
* Javascript Object types Enum
*/
export declare enum EnumTypes {
Array = 0,
AsyncFunction = 1,
Boolean = 2,
Blob = 3,
Buffer = 4,
Date = 5,
Error = 6,
Function = 7,
Map = 8,
Null = 9,
Number = 10,
Object = 11,
PlainObject = 12,
Promise = 13,
RegExp = 14,
Set = 15,
String = 16,
Symbol = 17,
TypedArray = 18,
Undefined = 19,
NotDefined = 20,
BigInt = 21
}
/**
* @internal
* @type {string[]}
*/
export declare const TypedArrayTypes: string[];