nonpositive()
Validates that the number is non-positive (less than or equal to 0).
nonpositive(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.
