Invalidate an input and serialize it with a failure message
The validated type
The failure message
invalidateWith("Not a number")("1") >> { valid: false, input: "", parsed: null, error: 'Not a number: "1"', }; Copy
invalidateWith("Not a number")("1") >> { valid: false, input: "", parsed: null, error: 'Not a number: "1"', };
Invalidate an input and serialize it with a failure message