Invert a validator
The validated type
The validator to invert
Optional
The failure explanation
const isNotNull = not(isNull, "Is null"); isNotNull(null).error >> { valid: false, error: "Is null: null", }; Copy
const isNotNull = not(isNull, "Is null"); isNotNull(null).error >> { valid: false, error: "Is null: null", };
Invert a validator