Files
DefinitelyTyped/statsd-client/statsd-client-import-asterisk-tests.ts
Garth Kidd f7763de15e Fix error TS2497 on import * as X from 'statsd-client':
Per Microsoft/TypeScript#5073, closed as `By Design` by @mhegazy, we need to
export a namespace for `import *` to work, else `TS2497`. That clashes with
the `export = ClassName` pattern unless you also merge in a namespace, e.g.
with `namespace ClassName {}`.
2016-08-09 16:14:46 +10:00

4 lines
141 B
TypeScript

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