API
function maxError( max: number, options: WithFieldTree<ValidationErrorOptions>, ): MaxValidationError; function maxError( max: number, options?: ValidationErrorOptions | undefined, ): WithoutFieldTree<MaxValidationError>;
function maxError(max: number, options: WithFieldTree<ValidationErrorOptions>): MaxValidationError;
Create a max value error associated with the target field
@parammax
numberThe max value constraint
@returns
MaxValidationError
function maxError(max: number, options?: ValidationErrorOptions | undefined): WithoutFieldTree<MaxValidationError>;
Create a max value error
@parammax
numberThe max value constraint
@returns
WithoutFieldTree<MaxValidationError>