Typescript question
I have code like this but I think my types are wrong because I cant access shape of zod schema on my class, also on comments I have some questions, any idea? I would like to be able to get schema on my database class correctly:
7 Replies
just tested using zod
and worked fine


Yes I know it works but its not correct
you want the shape to be the zod one
or the "parsed" user one
?
I want to get user out of it
i think i get what you want
something like this?
