Theo's Typesafe CultTTC
Theo's Typesafe Cult3y 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 and PublicProcedureContext to use as input types for a function. How to?
Was this page helpful?