Spudfella
Spudfella2mo 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
Spudfella
Spudfella2mo ago
But this one works
No description
Spudfella
Spudfella2mo ago
infers properly for that one
No description
Spudfella
Spudfella2mo 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
Spudfella
Spudfella2mo 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[]>();