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:
liushigit
2016-04-14 21:44:40 +09:00
committed by vvakame
parent 641df27e73
commit 7437a9ab3a
+1
View File
@@ -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;
}