Validate an input's fields with validators
The validated type
The validators to use
validateWith({ a: isNumber, b: isString })({ a: 1, b: "2" }) >> { valid: true, input: { a: 1, b: "2" }, }; Copy
validateWith({ a: isNumber, b: isString })({ a: 1, b: "2" }) >> { valid: true, input: { a: 1, b: "2" }, };
Validate an input's fields with validators