From 1fd9f304a76802739155766101920fabadabec1a Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 29 Dec 2016 11:02:55 +0900 Subject: [PATCH] a --- src/globals.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/globals.d.ts diff --git a/src/globals.d.ts b/src/globals.d.ts new file mode 100644 index 000000000..0af836212 --- /dev/null +++ b/src/globals.d.ts @@ -0,0 +1,11 @@ +import * as mongodb from 'mongodb'; +import { IConfig } from './config'; + +declare var config: IConfig; + +declare module NodeJS { + interface Global { + config: IConfig; + db: mongodb.Db; + } +}