@illavv/run_typer - v3.2.3
    Preparing search index...

    Type Alias Validator<T>

    Validator: (value: unknown) => T

    A validator function: takes an unknown value and either returns the narrowed value or throws a TypeError. Used by combinators (nullable, optional, union) to compose validators.

    Type Parameters

    • T

      The narrowed value type on success

    Type Declaration

      • (value: unknown): T
      • Parameters

        • value: unknown

        Returns T