Returns a validation function to validate that a number is less than the max value, if given. Exclusive version of
maxValueValidator. Can be used to validate that a number is negative by setting upperBound to 0.
Note: null values count as valid.
Parameters
OptionalupperBound: number
The upper bound of allowed values.
OptionalerrorMessage: string
A custom error message to display if the value is invalid.
Returns a validation function to validate that a number is less than the max value, if given. Exclusive version of maxValueValidator. Can be used to validate that a number is negative by setting
upperBoundto0.Note: null values count as valid.