Memefella
Memefella3mo ago

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
No description
No description
4 Replies
Memefella
MemefellaOP3mo ago
But this one works
No description
Memefella
MemefellaOP3mo ago
infers properly for that one
No description
Memefella
MemefellaOP3mo ago
I defined a .output and when I hover that, it shows the correct type, but when I import it, its still unknown[]
No description
No description
Memefella
MemefellaOP3mo ago
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[]>();