Interface Validator<TValue, TLimits>

Low-level validation of TResult value.

Type Parameters

  • TValue

  • TLimits

Hierarchy

Methods

  • Gets the description of expected value according to the specified limits.

    Parameters

    • limits: TLimits

    Returns string

  • Validates TResult value according to the specified limits.

    Returns

    The specified value if it is valid.

    Throws

    Error with explanatory message without actual value if it is invalid.

    Parameters

    • value: unknown
    • limits: TLimits

    Returns TValue

Generated using TypeDoc