mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
added an empty namespace in koa-bodyparser.d.ts (#8979)
Without this, there will be `Module '"koa-bodyparser"' resolves to a non-module entity and cannot be imported using this construct. (2497)` error This solution is found (here)[https://github.com/Microsoft/TypeScript/issues/5073]. koa-json's `.d.ts` file has such namespace.
This commit is contained in:
Vendored
+1
@@ -60,5 +60,6 @@ declare module "koa-bodyparser" {
|
||||
onerror?: (err: Error, ctx: Koa.Context) => void;
|
||||
}): { (ctx: Koa.Context, next?: () => any): any };
|
||||
|
||||
namespace bodyParser {}
|
||||
export = bodyParser;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user