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?
3 Replies
barry
barry15mo ago
Best you can do is inferring
mmurto
mmurto15mo ago
I'm not sure how exactly. Do you mean infer or inferred type? I'm trying to get the type to use as the input for a function, so not sure how they work for that.
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View