zod .refine() equivalent? min/max validation
Hello!
I'm currently exploring arktype to replace zod and was wondering if it was possible to replicate the functionality that zod provides via
.refine()
in arktype.
eg, performing a validation using multiple fields that relate to one another in an object. in this case, letting a user set a custom min/max range in two different inputs:
Thanks for the cool library!2 Replies
ArkType Docs
TypeScript's 1:1 validator, optimized from editor to runtime
i knew it'd be something obvious that i missed 🤦♂️
thank you!