# configuration/constants/code.typescript.constants.ts

> 95 lines of code and 4 definitions.

Tree: GovLab Docs
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/docs#file-docs-configuration-constants-code-typescript-constants-ts
Source text: https://banes-lab.com/source/docs/configuration/constants/code.typescript.constants.ts.txt

Listed in [configuration/constants](https://banes-lab.com/api/source/docs/configuration/constants.md), after [configuration/constants/code.go.constants.ts](https://banes-lab.com/source/docs/configuration/constants/code.go.constants.ts.md) and before [configuration/constants/concern.constants.ts](https://banes-lab.com/source/docs/configuration/constants/concern.constants.ts.md).

## Definitions

- `LIB_OBJECTS` (lexical_declaration, line 1, exported)
- `BUILTIN_METHODS` (lexical_declaration, line 20, exported)
- `STATE_NAME_HINTS` (lexical_declaration, line 86, exported)
- `INITIAL_HINTS` (lexical_declaration, line 88, exported)

## Contained in

- [configuration/constants](https://banes-lab.com/anatomy/docs/folder-docs-configuration-constants.md)

## Source

```typescript
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",
]);
```
