maxError
function
API
function maxError(
max: number,
options: WithField<ValidationErrorOptions>,
): MaxValidationError;
function maxError(
max: number,
options?: ValidationErrorOptions | undefined,
): WithoutField<MaxValidationError>;
function maxError(max: number, options: WithField<ValidationErrorOptions>): MaxValidationError;
Create a max value error associated with the target field
@parammax
number
The max value constraint
@returns
MaxValidationError
function maxError(max: number, options?: ValidationErrorOptions | undefined): WithoutField<MaxValidationError>;
Create a max value error
@parammax
number
The max value constraint
@paramoptions
ValidationErrorOptions | undefined
The optional validation error options
@returns
WithoutField<MaxValidationError>
Jump to details