Function invalidate

  • Invalidate an input

    Type Parameters

    • T

      The validated type

    Parameters

    Returns Validated<T>

    Example

    invalidate("1", "Not a number") >>
    {
    valid: false,
    input: "",
    parsed: null,
    error: "Not a number",
    };