teddythinh
Aarktype
•Created by teddythinh on 3/16/2025 in #questions
How to set a custom message with object type?
Hi guys, I'm new to Arktype, I'm switching from Zod to Arktype with this code:
So far, I switched to this in Arktype:
However, I'm not sure how to set a custom message. All of the documents refer to only one variable. https://arktype.io/docs/configuration#errors. Is there any way to set the error message for best practices? ❤️
43 replies