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
numberThe max value constraint
@returns
MaxValidationErrorfunction maxError(max: number, options?: ValidationErrorOptions | undefined): WithoutField<MaxValidationError>;Create a max value error
@parammax
numberThe max value constraint
@paramoptions
ValidationErrorOptions | undefinedThe optional validation error options
@returns
WithoutField<MaxValidationError>Jump to details