diff --git a/async/async.d.ts b/async/async.d.ts index 6c06348d55..5ba56e0dbb 100644 --- a/async/async.d.ts +++ b/async/async.d.ts @@ -75,4 +75,8 @@ interface Async { noConflict(): Async; } -declare var async: Async; \ No newline at end of file +declare var async: Async; + +declare module "async" { + export = async; +} \ No newline at end of file diff --git a/async/asyncamd-tests.ts b/async/asyncamd-tests.ts new file mode 100644 index 0000000000..4618a67bf5 --- /dev/null +++ b/async/asyncamd-tests.ts @@ -0,0 +1,3 @@ +import async = require("async"); + +async.map(["a", "b", "c"], (item, cb) => cb(null, [item.toUpperCase()]), (err, results) => { }); \ No newline at end of file