Page MenuHomePhorge

ant.ts
No OneTemporary

Size
843 B
Referenced Files
None
Subscribers
None
Ant.version = import.meta.env.VERSION;
Ant.target = import.meta.env.TARGET;
Ant.revision = import.meta.env.GIT_HASH;
Ant.buildDate = import.meta.env.BUILD_TIMESTAMP;
Ant.host = import.meta.env.HOST as AntHost;
Ant.typeof = function (t) {
const value = Ant.raw.typeof(t);
const types = {
T_OBJ: 'object',
T_PROP: 'prop',
T_STR: 'string',
T_UNDEF: 'undefined',
T_NULL: 'null',
T_NUM: 'number',
T_BOOL: 'boolean',
T_FUNC: 'function',
T_CODEREF: 'coderef',
T_CFUNC: 'cfunc',
T_ERR: 'err',
T_ARR: 'array',
T_PROMISE: 'promise',
T_TYPEDARRAY: 'typedarray',
T_BIGINT: 'bigint',
T_PROPREF: 'propref',
T_SYMBOL: 'symbol',
T_GENERATOR: 'generator',
T_FFI: 'ffi'
} as const;
const names = Object.values(types);
return value < names.length ? names[value] : '??';
};

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 9:33 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
533094
Default Alt Text
ant.ts (843 B)

Event Timeline