3 ms·
I don't disagree (not that I feel the same level of annoyance, on balance I love Zod for the time it saves me) but what would you recommend as an alternative?
by johnmorrison 3y ago
I don't disagree (not that I feel the same level of annoyance, on balance I love Zod for the time it saves me) but what would you recommend as an alternative?
The new valibot.dev looks cool but I haven't tried it yet.
- graftak 3y agoJust took a quick glance at the source[0] and the generic type for an object schema is a record of other schemas too, similar to Zod. At least that irk won't be solved by this and for me at least it’t the biggest one because it makes typing a function with generic data that includes a schema that acts upon it unnecessarily difficult. [0] https://github.com/fabian-hiller/valibot/blob/e6c53c8a4b0033274eef7e8fc70cdd65e46de7c1/library/src/schemas/object/object.ts#L21 https://github.com/fabian-hiller/valibot/blob/e6c53c8a4b0033...