Literal overview

Added in v1.0.0


Table of contents


Combinators

Literal

Represents a union of string, number, boolean, and null literal values

Signature

export declare const Literal: <Literals extends ReadonlyNonEmptyArray<string | number | boolean | null>>(
  ...values: Literals
) => Schema<Literals[number], Literals[number]>

Added in v1.0.0