cha0sg0d
How to get the type of context after middleware context extension?
I have a middleware where I validate and set a userId. My router knows that userId is no longer undefined, but I need to pass the route context to another function. How do I set the input type for that function such that
userId
is no longer undefined?9 replies