return type of a query endpoint
Hello
I currently have a trpc endpoint:
And I am trying to pass this into a custom react component:
The problem is, I'm not entirely sure how I am supposed to type the
but this makes the
I currently have a trpc endpoint:
And I am trying to pass this into a custom react component:
The problem is, I'm not entirely sure how I am supposed to type the
customInstance property? I have tried using return types:but this makes the
data property value unknown.