Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
88 replies
Gabriel

Why does typescript change the type of user whenever I add this to my return function?

Hi guys, I am trying to understand this about typescript/trpc. Why does the type here keep changing? Why is it not accepting me to type user.data.... ?
image.png
image.png
Was this page helpful?