configuration/constants/code.typescript.constants.ts
configuration/constants/code.typescript.constants.ts is a file in GovLab Docs. 95 lines of code and 4 definitions.
export const LIB_OBJECTS: ReadonlySet<string> = new Set([
"Math",
"JSON",
"Object",
"Array",
"Number",
"String",
"Date",
"Promise",
"console",
"Boolean",
"Symbol",
"Reflect",
"process",
"globalThis",
"RegExp",
"Error",
]);
export const BUILTIN_METHODS: ReadonlySet<string> = new Set([
"map",
"filter",
"forEach",
"reduce",
"reduceRight",
"find",
"findIndex",
"findLast",
"some",
"every",
"includes",
"indexOf",
"lastIndexOf",
"push",
"pop",
"shift",
"unshift",
"slice",
"splice",
"concat",
"join",
"split",
"sort",
"reverse",
"flat",
"flatMap",
"fill",
"keys",
"values",
"entries",
"then",
"catch",
"finally",
"toString",
"valueOf",
"hasOwnProperty",
"call",
"apply",
"bind",
"trim",
"trimStart",
"trimEnd",
"toLowerCase",
"toUpperCase",
"replace",
"replaceAll",
"startsWith",
"endsWith",
"padStart",
"padEnd",
"charAt",
"charCodeAt",
"codePointAt",
"substring",
"substr",
"match",
"matchAll",
"repeat",
"normalize",
"at",
"toFixed",
"toISOString",
"getTime",
]);
export const STATE_NAME_HINTS: readonly string[] = ["status", "state", "phase", "stage", "mode", "step", "lifecycle"];
export const INITIAL_HINTS: ReadonlySet<string> = new Set([
"idle",
"initial",
"pending",
"new",
"created",
"start",
"ready",
"init",
"queued",
]);