Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to get context type of protectedProcedure? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
4 replies
mmurto
How to get context type of protectedProcedure?
I want to keep my logic outside of the routes by using functions and just calling them in the router
. Is there a way to get the type of the context with the procedures applied
, i
.e
.
, I want to get types
ProtectedProcedureContext
ProtectedProcedureContext
and
PublicProcedureContext
PublicProcedureContext
to use as input types for a function
. How to
?
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 to get TRPC mutation type?
TTC
Theo's Typesafe Cult / questions
2y ago
How to get correct type, every time?
TTC
Theo's Typesafe Cult / questions
4y ago
TRPC Context type error
TTC
Theo's Typesafe Cult / questions
4y ago