arktypea
arktype16mo ago
PIat

Converting Zod to Arktype

Hello!
I'm really interested in using Conform instead of React Hook Form for better DX and server-side capabilities. However, it doesn't have Ark support yet, so I'll have to create my own simple patch.

Are there by any chance some examples or comparisons between Zod and Arktype architectures to go off of when translating these files, namely to extract the name of the constraints like Array in runtime?

expression might be "key"?
https://github.com/edmundhung/conform/blob/main/packages/conform-zod/constraint.ts
https://github.com/edmundhung/conform/blob/main/packages/conform-zod/parse.ts

Also, is there an way to do something like superRefine for custom run-time conditions?

https://zod.dev/?id=superrefine
Was this page helpful?