@metreeca/blue - v0.9.1
    Preparing search index...

    Type Alias Validator<T>

    Validator: (value: T) => Trace

    Value validator.

    A function that examines a value and returns a Trace describing any constraint violations:

    • An empty trace signals successful validation with no issues
    • A non-empty trace contains violation messages describing constraint failures

    Type Parameters

    • T extends Value = Value

      The value type being validated

    Type Declaration