Skip to content

ConstSchema

Defined in: src/schema/index.ts:61

Constant pattern element: an ordered ALTERNATION of exact values — the first member that matches wins (usually a single value; e.g. constVal(“true”, “false”) for one boolean-keyword node).

  • Schema<"const">

TValues extends readonly string[] = readonly string[]

readonly kind: "const"

Defined in: src/schema/index.ts:39

Schema.kind


readonly values: TValues

Defined in: src/schema/index.ts:64