Multiple Error Message using Arktype
plateDefinition: {
rows: type('number>0').and(type('number<33')).configure({
message: 'Please enter an integer between 1 and 32.',
}),
How can I have separate messages for integer must be greater than 1
And a different error messgae for integer must be less 32?
1 Reply
Hey! The best way to do this would be to define those custom messages as you're defining the constraints:
Playground