Infered Zod Schema turns into Zod String

So I have this code, where I have a user shema. That user schema works and gives the correct type definitions. However, I also need a record with that user schema. For some reason, that user schema, which is supposed to be an object with various properties, is now infered as a zod string. How would I be able to create a schema where I have a string a a key and the user schema as a value?
No description
2 Replies
TZD
TZDOP4mo ago
This is how the user schemas infered data is supposed to look like
No description
TZD
TZDOP4mo ago
Here are the versions that I use if that matters
No description

Did you find this page helpful?