TaQuanMinhLong
Explore posts from serversAarktype
•Created by dominikcz on 4/3/2025 in #questions
customizing error messages
@ssalbdivad I think the docs for making custom error message is currently not really clear
there are cases where I need to display error messages base on the current locale (language) of the user, how can we achieve this?
4 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
and if we add
.or("string")
, it still infers as string
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
enum is for exact value right? which means we're passing the literal value there
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
this works well, but then it's still that we're writing our own typescript type and arktype at the same
20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
well you can try with the
type Thing
example above20 replies
Aarktype
•Created by TaQuanMinhLong on 4/2/2025 in #questions
Loose string schema
there's no such infering from the schema to get that disired result?
20 replies