Closed powpi2000 closed 5 years ago
Can you please provide a sample project to reproduce this issue?
Closing until there is a response.
I'm also getting the same error on the latest version of the package node_modules/koa-body/index.d.ts:166:63 - error TS2315: Type 'Middleware' is not generic.
166 declare function koaBody (options?: koaBody.IKoaBodyOptions): Koa.Middleware<{}, {}>;
Came across the same error
Found the reason: the version of @types/koa is too low, upgrading it to the newest solves the problem.
Problem/Feature Request Summary
koa-body run in npx(dev) ok, but compiler failure
Environment Information
any on use koa-body in typescript compiler ok?