Merge pull request #10291 from garthk/fix-statsd-client-import-asterisk

Fix error TS2497 on `import * as X from 'statsd-client'`:
This commit is contained in:
Horiuchi_H
2016-08-09 23:42:55 +09:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
/// <reference path="statsd-client.d.ts" />
import * as StatsdClient from 'statsd-client';
const statsd = new StatsdClient({ debug: true });

View File

@@ -99,5 +99,6 @@ declare module "statsd-client" {
getChildClient(name: string): StatsdClient;
}
namespace StatsdClient {}
export = StatsdClient;
}