t
tRPC
t
tRPC
How can I create a generic middleware function, that is not attached to a specific router?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
3/22/23, 4:08 PM
t
.middleware will return a middleware you can import elsewhere
N
Nick
•
3/22/23, 4:08 PM
Complete with your initTRPC types
N
Nick
•
3/22/23, 4:26 PM
t
. Implies having initialised tRPC
, not necessarily a router