diff --git a/.gitignore b/.gitignore
index 858238c5bf..ce5d4a9d8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,5 +37,6 @@ node_modules
.sublimets
.settings/launch.json
+
.vscode
-yarn.lock
\ No newline at end of file
+yarn.lock
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 8b263f19ae..1036be548d 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -1665,7 +1665,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](supertest/supertest.d.ts) [SuperTest](https://github.com/visionmedia/supertest) by [Alex Varju](https://github.com/varju)
* [:link:](supertest-as-promised/supertest-as-promised.d.ts) [SuperTest as Promised](https://github.com/WhoopInc/supertest-as-promised) by [Tanguy Krotoff](https://github.com/tkrotoff)
* [:link:](svg-injector/svg-injector.d.ts) [SVG Injector](https://github.com/iconic/SVGInjector) by [Patrick Westerhoff](https://github.com/poke)
-* [:link:](svg-pan-zoom/svg-pan-zoom.d.ts) [svg-pan-zoom](https://github.com/ariutta/svg-pan-zoom) by [Chintan Shah](https://github.com/Promact)
+* [:link:](svg-pan-zoom/svg-pan-zoom-2.3.9.d.ts) [svg-pan-zoom](https://github.com/ariutta/svg-pan-zoom) by [Chintan Shah](https://github.com/Promact)
+* [:link:](svg-pan-zoom/svg-pan-zoom.d.ts) [svg-pan-zoom](https://github.com/ariutta/svg-pan-zoom) by [César Vidril](https://github.com/Yimiprod)
* [:link:](svg-sprite/svg-sprite.d.ts) [svg-sprite](https://github.com/jkphl/svg-sprite) by [Qubo](https://github.com/tkqubo)
* [:link:](svgjs/svgjs.d.ts) [svg.js](http://www.svgjs.com) by [Sean Hess](https://seanhess.github.io)
* [:link:](svg2png/svg2png.d.ts) [svg2png node package](https://github.com/domenic/svg2png) by [hans windhoff](https://github.com/hansrwindhoff)
diff --git a/README.md b/README.md
index d3e6c0e27c..ab2080714b 100644
--- a/README.md
+++ b/README.md
@@ -55,18 +55,23 @@ Before you share your improvement with the world, use it yourself.
#### Test editing an exiting package
To add new features you can use [module augmentation](http://www.typescriptlang.org/docs/handbook/declaration-merging.html).
-You can also directly edit the types in `node_modules/@types/foo/index.d.ts`,
-or copy them from there and paste inside of `declarations.d.ts` and follow the steps below.
+You can also directly edit the types in `node_modules/@types/foo/index.d.ts`, or copy them from there and follow the steps below.
#### Test a new package
-* Add a new file `declarations.d.ts` to your project.
-* Add it to the compilation, through `"includes"` or `"files"` in your [tsconfig](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html),
-or through a `/// ` declaration in your code.
-* Inside `declarations.d.ts`, write `declare module "foo" { }`, then write the module declaration inside.
-* Test that your code works.
-* *Then*, once you've tested your definitions, make a PR contributing the definition.
+Add to your `tsconfig.json`:
+
+```json
+"baseUrl": "types",
+"typeRoots": ["types"],
+```
+
+(You can also use `src/types`.)
+Create `types/foo/index.d.ts` containing declarations for the module "foo".
+You should now be able import from `"foo"` in your code and it will route to the new type definition.
+Then build *and* run the code to make sure your type definition actually corresponds to what happens at runtime.
+Once you've tested your definitions with real code, make a PR contributing the definition by copying `types/foo` to `DefinitelyTyped/foo` and adding a `tsconfig.json` and `foo-tests.ts`.
### Make a pull request
diff --git a/amcharts/index.d.ts b/amcharts/index.d.ts
index fbc2ee4ac9..45c848e5af 100644
--- a/amcharts/index.d.ts
+++ b/amcharts/index.d.ts
@@ -24,6 +24,9 @@ declare namespace AmCharts {
/** Set it to true if you want UTC time to be used instead of local time. */
var useUTC: boolean;
+ /** Object with themes */
+ var themes: any;
+
/** Clears all the charts on page, removes listeners and intervals. */
function clear(): void;
diff --git a/angular-breadcrumb/index.d.ts b/angular-breadcrumb/index.d.ts
index 81bb8a1d37..81bd4b3d12 100644
--- a/angular-breadcrumb/index.d.ts
+++ b/angular-breadcrumb/index.d.ts
@@ -76,4 +76,4 @@ declare namespace ncy {
**/
getLastStep(): angular.ui.IState;
}
-}
\ No newline at end of file
+}
diff --git a/angular-material/index.d.ts b/angular-material/index.d.ts
index 7895732ada..ffdab5839b 100644
--- a/angular-material/index.d.ts
+++ b/angular-material/index.d.ts
@@ -76,7 +76,7 @@ declare module 'angular' {
}
interface IColorService {
- applyThemeColors(element: Element|JQuery, colorExpression: IColorExpression): void;
+ applyThemeColors(element: Element | JQuery, colorExpression: IColorExpression): void;
getThemeColor(expression: string): string;
hasTheme(): boolean;
}
@@ -158,7 +158,7 @@ declare module 'angular' {
hideDelay(delay: number): T;
position(position: string): T;
parent(parent?: string | Element | JQuery): T; // default: root node
- toastClass(toastClass: string): T;
+ toastClass(toastClass: string): T;
}
interface ISimpleToastPreset extends IToastPreset {
@@ -225,7 +225,7 @@ declare module 'angular' {
hues: IThemeHues;
}
- interface IBrowserColors{
+ interface IBrowserColors {
theme: string;
palette: string;
hue: string;
@@ -264,6 +264,7 @@ declare module 'angular' {
definePalette(name: string, palette: IPalette): IThemingProvider;
enableBrowserColor(browserColors: IBrowserColors): Function;
extendPalette(name: string, palette: IPalette): IPalette;
+ registerStyles(styles: String): void;
setDefaultTheme(theme: string): void;
setNonce(nonce: string): void;
theme(name: string, inheritFrom?: string): ITheme;
@@ -414,7 +415,7 @@ declare module 'angular' {
ESCAPE: string,
};
absPosition: {
- TOP: string,
+ TOP: string,
RIGHT: string,
BOTTOM: string,
LEFT: string,
diff --git a/assert/index.d.ts b/assert/index.d.ts
index f358833165..23536f9597 100644
--- a/assert/index.d.ts
+++ b/assert/index.d.ts
@@ -3,7 +3,13 @@
// Definitions by: vvakame
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// copy from assert external module in node.d.ts
+// Definitions for commonjs-assert match that of node.js' assert module,
+// but commonjs-assert is intended to be used as an independent module,
+// for instance when making a stand-alone site or app that doesn't have
+// access to node modules. For that reason, these definitions define a
+// "assert" module. This will conflict with node.d.ts and other assert
+// modules such as "power-assert", but a project should realistically
+// only be using one of these at a time.
declare function assert(value:any, message?:string):void;
declare namespace assert {
@@ -50,3 +56,4 @@ declare namespace assert {
export function ifError(value:any):void;
}
+
diff --git a/async/async-tests.ts b/async/async-tests.ts
index c4a3506415..2a21a6cabb 100644
--- a/async/async-tests.ts
+++ b/async/async-tests.ts
@@ -7,22 +7,23 @@ declare var path: {
exists: (path: string, callback?: (err: Error, exists: boolean) => any) => void;
};
+function funcStringCbErrBoolean(v:string, cb:(err:Error,res:boolean) => void) {}
function callback() { }
-async.map(['file1', 'file2', 'file3'], fs.stat, function (err, results) { });
-async.mapSeries(['file1', 'file2', 'file3'], fs.stat, function (err, results) { });
-async.mapLimit(['file1', 'file2', 'file3'], 2, fs.stat, function (err, results) { });
+async.map(['file1', 'file2', 'file3'], fs.stat, function (err:Error, results:Array) { });
+async.mapSeries(['file1', 'file2', 'file3'], fs.stat, function (err:Error, results:Array) { });
+async.mapLimit(['file1', 'file2', 'file3'], 2, fs.stat, function (err:Error, results:Array) { });
-async.filter(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.filterSeries(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.filterLimit(['file1', 'file2', 'file3'], 2, path.exists, function (results) { });
-async.select(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.selectSeries(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.selectLimit(['file1', 'file2', 'file3'], 2, path.exists, function (results) { });
+async.filter(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.filterSeries(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.filterLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.select(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.selectSeries(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.selectLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err:Error,results:Array) { });
-async.reject(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.rejectSeries(['file1', 'file2', 'file3'], path.exists, function (results) { });
-async.rejectLimit(['file1', 'file2', 'file3'], 2, path.exists, function (results) { });
+async.reject(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.rejectSeries(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,results:Array) { });
+async.rejectLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err:Error,results:Array) { });
async.parallel([
function () { },
@@ -46,9 +47,9 @@ var openFilesObj = {
file2: "fileTwo"
}
-var saveFile = function () { }
-async.each(openFiles, saveFile, function (err) { });
-async.eachSeries(openFiles, saveFile, function (err) { });
+var saveFile = function (file:string,cb:(err:Error)=>void) { }
+async.each(openFiles, saveFile, function (err:Error) { });
+async.eachSeries(openFiles, saveFile, function (err:Error) { });
var documents: any, requestApi: any;
async.eachLimit(documents, 20, requestApi, function (err) { });
@@ -77,9 +78,9 @@ async.foldl(numArray, 0, reducer, function (err, result) { });
async.reduceRight(numArray, 0, reducer, function (err, result) { });
async.foldr(numArray, 0, reducer, function (err, result) { });
-async.detect(['file1', 'file2', 'file3'], path.exists, function (result) { });
-async.detectSeries(['file1', 'file2', 'file3'], path.exists, function (result) { });
-async.detectLimit(['file1', 'file2', 'file3'], 2, path.exists, function (result) { });
+async.detect(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err: Error,result:string) { });
+async.detectSeries(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err,result) { });
+async.detectLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err,result) { });
async.sortBy(['file1', 'file2', 'file3'], function (file, callback) {
fs.stat(file, function (err, stats) {
@@ -87,13 +88,13 @@ async.sortBy(['file1', 'file2', 'file3'], function (file, callback) {
});
}, function (err, results) { });
-async.some(['file1', 'file2', 'file3'], path.exists, function (result) { });
-async.someLimit(['file1', 'file2', 'file3'], 2, path.exists, function (result) { });
-async.any(['file1', 'file2', 'file3'], path.exists, function (result) { });
+async.some(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,result:boolean) { });
+async.someLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err:Error,result:boolean) { });
+async.any(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,result:boolean) { });
-async.every(['file1', 'file2', 'file3'], path.exists, function (result) { });
-async.everyLimit(['file1', 'file2', 'file3'], 2, path.exists, function (result) { });
-async.all(['file1', 'file2', 'file3'], path.exists, function (result) { });
+async.every(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,result:boolean) { });
+async.everyLimit(['file1', 'file2', 'file3'], 2, funcStringCbErrBoolean, function (err:Error,result:boolean) { });
+async.all(['file1', 'file2', 'file3'], funcStringCbErrBoolean, function (err:Error,result:boolean) { });
async.concat(['dir1', 'dir2', 'dir3'], fs.readdir, function (err, files) { });
async.concatSeries(['dir1', 'dir2', 'dir3'], fs.readdir, function (err, files) { });
@@ -111,7 +112,7 @@ async.series([
],
function (err, results) { });
-async.series([
+async.series([
function (callback) {
callback(undefined, 'one');
},
@@ -135,7 +136,7 @@ async.series({
},
function (err, results) { });
-async.series({
+async.series({
one: function (callback) {
setTimeout(function () {
callback(undefined, 1);
@@ -175,7 +176,7 @@ async.parallel([
],
function (err, results) { });
-async.parallel([
+async.parallel([
function (callback) {
setTimeout(function () {
callback(undefined, 'one');
@@ -204,7 +205,7 @@ async.parallel({
},
function (err, results) { });
-async.parallel({
+async.parallel({
one: function (callback) {
setTimeout(function () {
callback(undefined, 1);
@@ -270,7 +271,7 @@ async.waterfall([
], function (err, result) { });
-var q = async.queue(function (task: any, callback: any) {
+var q = async.queue(function (task: any, callback: () => void) {
console.log('hello ' + task.name);
callback();
}, 2);
@@ -323,7 +324,7 @@ q.resume();
q.kill();
// tests for strongly typed tasks
-var q2 = async.queue(function (task: string, callback: any) {
+var q2 = async.queue(function (task: string, callback: () => void) {
console.log('Task: ' + task);
callback();
}, 1);
@@ -386,10 +387,10 @@ async.retry({ times: 3, interval: (retryCount) => { return 200 * retryCount; } }
async.parallel([
- function (callback) { },
+ function (callback: ( err:Error, val:string ) => void ) { },
function (callback) { }
],
-function (results) {
+function (err:Error,results:Array) {
async.series([
function (callback) { },
function email_link(callback) { }
@@ -442,10 +443,10 @@ async.dir(function (name: string, callback: any) {
// each
-async.each({
+async.each({
"a": 1,
"b": 2
-}, function(val: number, next: ErrorCallback): void {
+}, function(val: number, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -461,10 +462,10 @@ async.each({
});
-async.eachSeries({
+async.eachSeries({
"a": 1,
"b": 2
-}, function(val: number, next: ErrorCallback): void {
+}, function(val: number, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -480,14 +481,14 @@ async.eachSeries({
});
-async.eachLimit({
+async.eachLimit({
"a": 1,
"b": 2,
"c": 3,
"d": 4,
"e": 5,
"f": 6
-}, 2, function(val: number, next: ErrorCallback): void {
+}, 2, function(val: number, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -505,10 +506,10 @@ async.eachLimit({
// forEachOf/eachOf
-async.eachOf({
+async.eachOf({
"a": 1,
"b": 2
-}, function(val: number, key: string, next: ErrorCallback): void {
+}, function(val: number, key: string, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -524,10 +525,10 @@ async.eachOf({
});
-async.forEachOfSeries({
+async.forEachOfSeries({
"a": 1,
"b": 2
-}, function(val: number, key: string, next: ErrorCallback): void {
+}, function(val: number, key: string, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -543,14 +544,14 @@ async.forEachOfSeries({
});
-async.forEachOfLimit({
+async.forEachOfLimit({
"a": 1,
"b": 2,
"c": 3,
"d": 4,
"e": 5,
"f": 6
-}, 2, function(val: number, key: string, next: ErrorCallback): void {
+}, 2, function(val: number, key: string, next: ErrorCallback): void {
setTimeout(function(): void {
@@ -568,11 +569,11 @@ async.forEachOfLimit({
// map
-async.map({
+async.map({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, next: AsyncResultCallback): void {
+}, function(val: number, next: AsyncResultCallback): void {
setTimeout(function(): void {
@@ -588,11 +589,11 @@ async.map({
});
-async.mapSeries({
+async.mapSeries({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, next: AsyncResultCallback): void {
+}, function(val: number, next: AsyncResultCallback): void {
setTimeout(function(): void {
@@ -608,14 +609,14 @@ async.mapSeries({
});
-async.mapLimit({
+async.mapLimit({
"a": 1,
"b": 2,
"c": 3,
"d": 4,
"e": 5,
"f": 6
-}, 2, function(val: number, next: AsyncResultCallback): void {
+}, 2, function(val: number, next: AsyncResultCallback): void {
setTimeout(function(): void {
@@ -633,11 +634,11 @@ async.mapLimit({
// mapValues
-async.mapValues({
+async.mapValues({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, key: string, next: AsyncResultCallback): void {
+}, function(val: number, key: string, next: AsyncResultCallback): void {
setTimeout(function(): void {
@@ -653,11 +654,11 @@ async.mapValues({
});
-async.mapValuesSeries({
+async.mapValuesSeries({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, key: string, next: AsyncResultCallback): void {
+}, function(val: number, key: string, next: AsyncResultCallback): void {
setTimeout(function(): void {
@@ -675,11 +676,11 @@ async.mapValuesSeries({
// filter/select/reject
-async.filter({
+async.filter({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, next: AsyncBooleanResultCallback): void {
+}, function(val: number, next: AsyncBooleanResultCallback): void {
setTimeout(function(): void {
@@ -695,11 +696,11 @@ async.filter({
});
-async.reject({
+async.reject({
"a": 1,
"b": 2,
"c": 3
-}, function(val: number, next: AsyncBooleanResultCallback): void {
+}, function(val: number, next: AsyncBooleanResultCallback): void {
setTimeout(function(): void {
@@ -717,11 +718,11 @@ async.reject({
// concat
-async.concat({
+async.concat({
"a": "1",
"b": "2",
"c": "3"
-}, function(item: string, next: AsyncResultCallback): void {
+}, function(item: string, next: AsyncResultCallback): void {
console.log(`async.concat: ${item}`);
@@ -735,11 +736,11 @@ async.concat({
// detect/find
-async.detect({
+async.detect({
"a": 1,
"b": 2,
"c": 3
-}, function(item: number, next: AsyncBooleanResultCallback): void {
+}, function(item: number, next: AsyncBooleanResultCallback): void {
console.log(`async.detect/find: ${item}`);
@@ -760,11 +761,11 @@ async.detect({
// every/all
-async.every({
+async.every({
"a": 1,
"b": 2,
"c": 3
-}, function(item: number, next: AsyncBooleanResultCallback): void {
+}, function(item: number, next: AsyncBooleanResultCallback): void {
console.log(`async.every/all: ${item}`);
@@ -778,11 +779,11 @@ async.every({
// some/any
-async.some({
+async.some({
"a": 1,
"b": 2,
"c": 3
-}, function(item: number, next: AsyncBooleanResultCallback): void {
+}, function(item: number, next: AsyncBooleanResultCallback): void {
console.log(`async.some/any: ${item}`);
diff --git a/async/index.d.ts b/async/index.d.ts
index 8b564fbd80..45d39ea955 100644
--- a/async/index.d.ts
+++ b/async/index.d.ts
@@ -5,22 +5,22 @@
interface Dictionary { [key: string]: T; }
-interface ErrorCallback { (err?: Error): void; }
-interface AsyncWaterfallCallback { (err: Error, ...args: any[]): void; }
-interface AsyncBooleanResultCallback { (err: Error, truthValue: boolean): void; }
-interface AsyncResultCallback { (err: Error, result: T): void; }
-interface AsyncResultArrayCallback { (err: Error, results: T[]): void; }
-interface AsyncResultObjectCallback { (err: Error, results: Dictionary): void; }
+interface ErrorCallback { (err?: T): void; }
+interface AsyncWaterfallCallback { (err: E, ...args: any[]): void; }
+interface AsyncBooleanResultCallback { (err: E, truthValue: boolean): void; }
+interface AsyncResultCallback { (err: E, result: T): void; }
+interface AsyncResultArrayCallback { (err: E, results: T[]): void; }
+interface AsyncResultObjectCallback { (err: E, results: Dictionary): void; }
-interface AsyncFunction { (callback: (err?: Error, result?: T) => void): void; }
-interface AsyncIterator { (item: T, callback: ErrorCallback): void; }
-interface AsyncForEachOfIterator { (item: T, key: number|string, callback: ErrorCallback): void; }
-interface AsyncResultIterator { (item: T, callback: AsyncResultCallback): void; }
-interface AsyncMemoIterator { (memo: R, item: T, callback: AsyncResultCallback): void; }
-interface AsyncBooleanIterator { (item: T, callback: AsyncBooleanResultCallback): void; }
+interface AsyncFunction { (callback: (err?: E, result?: T) => void): void; }
+interface AsyncIterator { (item: T, callback: ErrorCallback): void; }
+interface AsyncForEachOfIterator { (item: T, key: number|string, callback: ErrorCallback): void; }
+interface AsyncResultIterator { (item: T, callback: AsyncResultCallback): void; }
+interface AsyncMemoIterator { (memo: R, item: T, callback: AsyncResultCallback): void; }
+interface AsyncBooleanIterator { (item: T, callback: AsyncBooleanResultCallback): void; }
-interface AsyncWorker { (task: T, callback: ErrorCallback): void; }
-interface AsyncVoidFunction { (callback: ErrorCallback): void; }
+interface AsyncWorker { (task: T, callback: ErrorCallback): void; }
+interface AsyncVoidFunction { (callback: ErrorCallback): void; }
interface AsyncQueue {
length(): number;
@@ -28,10 +28,10 @@ interface AsyncQueue {
running(): number;
idle(): boolean;
concurrency: number;
- push(task: T, callback?: ErrorCallback): void;
- push(task: T[], callback?: ErrorCallback): void;
- unshift(task: T, callback?: ErrorCallback): void;
- unshift(task: T[], callback?: ErrorCallback): void;
+ push(task: T, callback?: ErrorCallback): void;
+ push(task: T[], callback?: ErrorCallback): void;
+ unshift(task: T, callback?: ErrorCallback): void;
+ unshift(task: T[], callback?: ErrorCallback): void;
saturated: () => any;
empty: () => any;
drain: () => any;
@@ -53,8 +53,8 @@ interface AsyncPriorityQueue {
concurrency: number;
started: boolean;
paused: boolean;
- push(task: T, priority: number, callback?: AsyncResultArrayCallback): void;
- push(task: T[], priority: number, callback?: AsyncResultArrayCallback): void;
+ push(task: T, priority: number, callback?: AsyncResultArrayCallback): void;
+ push(task: T[], priority: number, callback?: AsyncResultArrayCallback): void;
saturated: () => any;
empty: () => any;
drain: () => any;
@@ -90,122 +90,122 @@ interface AsyncCargo {
interface Async {
// Collections
- each(arr: T[], iterator: AsyncIterator, callback?: ErrorCallback): void;
- each(arr: Dictionary, iterator: AsyncIterator, callback?: ErrorCallback): void;
+ each(arr: T[], iterator: AsyncIterator, callback?: ErrorCallback): void;
+ each(arr: Dictionary, iterator: AsyncIterator, callback?: ErrorCallback): void;
eachSeries: typeof async.each;
- eachLimit(arr: T[], limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void;
- eachLimit(arr: Dictionary, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void;
+ eachLimit(arr: T[], limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void;
+ eachLimit(arr: Dictionary, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void;
forEach: typeof async.each;
forEachSeries: typeof async.each;
forEachLimit: typeof async.eachLimit;
- forEachOf(obj: T[], iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
- forEachOf(obj: Dictionary, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
+ forEachOf(obj: T[], iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
+ forEachOf(obj: Dictionary, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
forEachOfSeries: typeof async.forEachOf;
- forEachOfLimit(obj: T[], limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
- forEachOfLimit(obj: Dictionary, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
+ forEachOfLimit(obj: T[], limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
+ forEachOfLimit(obj: Dictionary, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void;
eachOf: typeof async.forEachOf;
eachOfSeries: typeof async.forEachOf;
eachOfLimit: typeof async.forEachOfLimit;
- map(arr: T[], iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
- map(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
+ map(arr: T[], iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
+ map(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
mapSeries: typeof async.map;
- mapLimit(arr: T[], limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
- mapLimit(arr: Dictionary, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
- mapValuesLimit(obj: Dictionary, limit: number, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultCallback): void;
- mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultCallback): void;
+ mapLimit(arr: T[], limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
+ mapLimit(arr: Dictionary, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void;
+ mapValuesLimit(obj: Dictionary, limit: number, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultCallback): void;
+ mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultCallback): void;
mapValuesSeries: typeof async.mapValues;
- filter(arr: T[], iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void;
- filter(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void;
+ filter(arr: T[], iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback