Type too complex to infer?
Hey, I have a working router where types are infered properly, but no matter what I try I can't get this one to work
4 Replies
But this one works
infers properly for that one
I defined a
.output
and when I hover that, it shows the correct type, but when I import it, its still unknown[]
it's working when I cast it on the other side, but that kind of defeats the purpose of trpc 😄
const { data: eras } = trpc.game.eras.useQuery<Era[]>();