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