mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 06:29:40 +08:00
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:
3
statsd-client/statsd-client-import-asterisk-tests.ts
Normal file
3
statsd-client/statsd-client-import-asterisk-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
/// <reference path="statsd-client.d.ts" />
|
||||
import * as StatsdClient from 'statsd-client';
|
||||
const statsd = new StatsdClient({ debug: true });
|
||||
1
statsd-client/statsd-client.d.ts
vendored
1
statsd-client/statsd-client.d.ts
vendored
@@ -99,5 +99,6 @@ declare module "statsd-client" {
|
||||
getChildClient(name: string): StatsdClient;
|
||||
}
|
||||
|
||||
namespace StatsdClient {}
|
||||
export = StatsdClient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user