t
tRPC
t
tRPC
Getting data as "any"
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
6/10/23, 4:27 PM
Have you restarted the language server
?
N
Nick
•
6/10/23, 6:56 PM
Got it
, we
’ll I would always start by checking that types are available in the api itself
N
Nick
•
6/10/23, 6:56 PM
If not then it
’s probably some change in your repo which is causing the types to not reach the client
N
Nick
•
6/10/23, 9:03 PM
Do you have an example of the types which are causing the problem
? If you pop the result in a variable and return the variable what is the type of said variable
?
N
Nick
•
6/10/23, 9:04 PM
If that
’s not any it may be a bug
, would be useful to get some kind of reproduction
N
Nick
•
6/10/23, 9:05 PM
Could also be that your project setup isn
’t giving the client access to the types of the graphql client and so TS falls back on any