Validate an input
The validated type
The raw input
The parsed input
validate(1) >> { valid: true, input: 1, parsed: 1, error: null, }; validate("1", 1) >> { valid: true, input: "1", parsed: 1, error: null, }; Copy
validate(1) >> { valid: true, input: 1, parsed: 1, error: null, }; validate("1", 1) >> { valid: true, input: "1", parsed: 1, error: null, };
Validate an input