nonnegative()
Validates that the number is non-negative (greater than or equal to 0).
nonnegative(error?: StringConvertible): this;
Parameters
- error — Custom error message.
Return value
This builder, for chaining.
Related
interface Schema.NumberBuilder static
A validation builder for number values.
