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
πš™πŸΆπš›πšπšŠπš•
infers properly for that one
No description
πš™πŸΆπš›πšπšŠπš•
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
πš™πŸΆπš›πšπšŠπš•
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[]>();