This commit is contained in:
Aya Morisawa 2016-12-29 11:02:55 +09:00
parent b7282c9fc3
commit b34958bb6e
1 changed files with 11 additions and 0 deletions

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