I'm adding a middleware in my project which extends a koa's context. In order for router to know that, I should pass an extended type on router creation like this:
const router = new SwaggerRouter<MyState, MyContext>();
The following code fails because of a type mismatch:
The issue is, generics specified on SwaggerRouter creation are not being passed to koa's Router. The fix is pretty straight forward and I'm opening a PR.
I'm adding a middleware in my project which extends a koa's context. In order for router to know that, I should pass an extended type on router creation like this:
The following code fails because of a type mismatch:
The issue is, generics specified on
SwaggerRouter
creation are not being passed to koa'sRouter
. The fix is pretty straight forward and I'm opening a PR.