passing object as a props, how to type it
Heyy lets say I have fully typed object from a backend on a page like this
His type looks like this
But now I want to to pass it as prop to a component. Is there a way to not loose types? I mean it's kinda dumb to just create another schema for typescript right? Is there cool way to not loose types there?
For example
and then
2 Replies