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?

2 Replies