Type alias ValidatorCustomValidator<TI>

ValidatorCustomValidator<TI>: ((input) => Promise<TI> | TI)

Represents a generic validator function that may return a promise or a direct value.

Type Parameters

  • TI

    The type that the input is validated against and returned.

Type declaration

    • (input): Promise<TI> | TI
    • Parameters

      • input: unknown

      Returns Promise<TI> | TI