From 1eab71a53a7df593305bd9b8b27cb752cc045417 Mon Sep 17 00:00:00 2001 From: Andrew Gaspar Date: Sun, 18 Aug 2013 03:54:59 -0500 Subject: [PATCH] Async with external module support. --- async/async.d.ts | 6 +++++- async/asyncamd-tests.ts | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 async/asyncamd-tests.ts 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