I'm using koa with Typescript. I also use the koa middleware koa-static and koa-bodyparser. I have the type definition packages @types/koa, @types/koa-bodyparser and @types/koa-static installed. When I run tsc I get the following errors:
ERROR in [default] ./node_modules/@types/koa-bodyparser/index.d.ts:69:8
Namespace 'Koa' has no exported member 'Middleware'.
and
ERROR in [default] ./node_modules/@types/koa-static/index.d.ts:45:8
Namespace 'Koa' has no exported member 'Middleware'.
I doubt this error has anything to do with my own code. Any help appreciated.