Basic Inference not Working
I have been struggling to get basic type inferencing to work with trpc, react, and Drizzle ORM.
This is what my server-side router is returning from the
Where, if I hover over the
However, on my client side, it says the type is
Why is this basic type inferencing not happening?
I am using Drizzle ORM to infer the return type on the router response; could this have something to do with it?
Does trpc not work well with ORM's that use inference?
This is what my server-side router is returning from the
list method:Where, if I hover over the
response in the return, it says the type is:However, on my client side, it says the type is
any for the following:Why is this basic type inferencing not happening?
I am using Drizzle ORM to infer the return type on the router response; could this have something to do with it?
Does trpc not work well with ORM's that use inference?