Skip to content

Commit 1eab71a

Browse files
committed
Async with external module support.
1 parent 9804057 commit 1eab71a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

async/async.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,8 @@ interface Async {
7575
noConflict(): Async;
7676
}
7777

78-
declare var async: Async;
78+
declare var async: Async;
79+
80+
declare module "async" {
81+
export = async;
82+
}

async/asyncamd-tests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import async = require("async");
2+
3+
async.map(["a", "b", "c"], (item, cb) => cb(null, [item.toUpperCase()]), (err, results) => { });

0 commit comments

Comments
 (0)