How to infer type of a nested object from app router output?
I have a tRPC router than returns a nested object through a db query. It looks like this:
I'd like to infer the type of the
I was wondering if this is even possible?
I'd like to infer the type of the
comments property to use as an interface for props on a component. I tried doing this but this doesn't work:I was wondering if this is even possible?