koa-passport icon indicating copy to clipboard operation
koa-passport copied to clipboard

Not work well with @koa/router in Typescript

Open LuHugo opened this issue 5 years ago • 2 comments

In Typescript, router context type was conflict.

LuHugo avatar Feb 09 '20 05:02 LuHugo

In Typescript, router context type was conflict.

Any fix for this?

smasinde avatar Mar 20 '20 13:03 smasinde

I faced a similar issue, and was able to get past the conflict based on this post: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/36161#issuecomment-571295417

I'm not sure what the root cause is about, and who (koa-router, or koa-passport and other middleware authors) should be fixing this though.

geksiong avatar Sep 27 '20 08:09 geksiong