Low-level validation of an array.

Hierarchy

Methods

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

    Parameters

    • limits: void | "NotEmpty"

    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: void | "NotEmpty"

    Returns readonly unknown[]

Generated using TypeDoc