How can I get the type of the context of adminProcedureadminProcedure from export const adminProcedure = publicProcedure.use(isAdmin)export const adminProcedure = publicProcedure.use(isAdmin)? https://trpc.io/docs/server/middlewares
You are able to add middleware(s) to a procedure with the t.procedure.use() method. The middleware(s) will wrap the invocation of the procedure and must pass through its return value.
No replies yet
Join the Discord to continue the conversation
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.