From b34958bb6e464e9d57325bf9a576afc1974905c4 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 0000000000..0af8362122 --- /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; + } +}