milk enjoyer
milk enjoyer11mo ago

Generated types fall to default when using a schema with 200+ keys

I define all my tables with Zod and it is a great workflow. Using zodToConvex, I convert everything to convex validators before adding it to my defined schema. However, I realized that the generated types fall back to the following when I added around 200+ keys to my Zod schema:
{
[x: string]: Value;
_id: Id<"tableName">;
}
{
[x: string]: Value;
_id: Id<"tableName">;
}
Is this intended?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?