Page MenuHomePhorge

ant.ts
No OneTemporary

Size
829 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_STR: 'string',
T_ARR: 'array',
T_FUNC: 'function',
T_CFUNC: 'cfunc',
T_PROMISE: 'promise',
T_GENERATOR: 'generator',
T_UNDEF: 'undefined',
T_NULL: 'null',
T_BOOL: 'boolean',
T_NUM: 'number',
T_BIGINT: 'bigint',
T_SYMBOL: 'symbol',
T_TYPEDARRAY: 'typedarray',
T_ERR: 'err',
T_NTARG: 'ntarg'
} as const;
const names = Object.values(types);
return value < names.length ? names[value] : '??';
};
Ant.inspect = (...args) => console.inspect(...args);

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 7:37 AM (18 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
541345
Default Alt Text
ant.ts (829 B)

Event Timeline