This commit is contained in:
Aya Morisawa 2016-12-29 11:02:55 +09:00
parent 1dd136fc02
commit 1fd9f304a7

11
src/globals.d.ts vendored Normal file
View File

@ -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;
}
}