Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how do I get the types from data off of a use query??? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
4 replies
Max
how do I get the types from data off of a use query???
const
{ data
, isLoading
: isGetListDataLoading
}
= api
.list
.getLists
.useQuery
(
)
im using this code in a context provider and I want to pass this data down but I can
't cause typescript
.
Solution
src/utils/api.ts
src/utils/api.ts
should export the type
RouterOutputs
RouterOutputs
Jump to solution
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How do I type my query data?
TTC
Theo's Typesafe Cult / questions
4y ago
How do i get a type from Prisma?
TTC
Theo's Typesafe Cult / questions
4y ago
How to get result of a trpc query in a use effect
TTC
Theo's Typesafe Cult / questions
4y ago