novx
    Preparing search index...

    Class OneOfType<T>

    Validation type for literal union types (e.g., 'value1' | 'value2' | 'value3') This is different from EnumType which expects an enum object at runtime.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    baseType: string = "string"
    message?: string
    name?: string
    tests: Test<T>[] = []
    cache: {} = {}

    Methods