Search
Star
1.4k
Feedback
Setup for Free
TTC
Theo's Typesafe Cult
•
4y 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
.
.
.
.
?
Theo's Typesafe Cult
Join
26,174
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Next page
Similar Threads
Typescript behaving strangely when inferring function return type
TTC
Theo's Typesafe Cult / questions
4y ago
Why the infered type of this function is `string | undefined`?
TTC
Theo's Typesafe Cult / questions
3y ago
Generic return type of function in record
TTC
Theo's Typesafe Cult / questions
4y ago