mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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 {}`.
4 lines
141 B
TypeScript
4 lines
141 B
TypeScript
/// <reference path="statsd-client.d.ts" />
|
|
import * as StatsdClient from 'statsd-client';
|
|
const statsd = new StatsdClient({ debug: true });
|