News for hackers. Stuff that matters.
Re:Zod 4 by colinmcd on Monday May 19, 2025 @03:10PM (#44033610)
Some kind of affordance for FormData/URLSearchParams-style structures is definitely in scope. It was a late cut. Ultimately HTML inputs/forms are an implicit type system unto itself—certainly HTML has a very different notion of "optional" than TypeScript. So my approach to this would likely involve another sub-library ("zod/v4-form").

I like your library! Put in a PR to add it to the ecosystem page :)

Re:Zod 4 by elbajo on Monday May 19, 2025 @03:55PM (#44034108)
Great to hear this is something you are considering!

To be clear: this isn't my library. This is just something I found while trying to solve the FormData issue. Props go to https://github.com/raflymln who created it.