3 ms·
Just 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
by graftak 3y ago
Just 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...