@pcvl/schema / PossibleLiteralValue
Type Alias: PossibleLiteralValue
ts
type PossibleLiteralValue = string | number | boolean | bigint;Defined in: schemas/literalInterpretedSchema.ts:21
Every primitive type pvl.literal() can pin a schema to. Objects, arrays and null/undefined are not literal values — use pvl.object(), pvl.array() or the .nullable()/.optional() modifiers instead.
Example
ts
import { pvl, type PossibleLiteralValue } from '@pcvl/schema';
const pinned: PossibleLiteralValue = 'OWNER';
const owner = pvl.literal(pinned);