From ed2e7986faa8073c8b16705a175d92096b04a09b Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Fri, 1 Feb 2013 18:25:17 -0200 Subject: [PATCH 1/2] fix async-tests errors --- async/async-tests.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/async/async-tests.ts b/async/async-tests.ts index 5330f09287..e7b57a1f89 100644 --- a/async/async-tests.ts +++ b/async/async-tests.ts @@ -156,14 +156,16 @@ q.push([{ name: 'baz' }, { name: 'bay' }, { name: 'bax' }], function (err) { console.log('finished processing bar'); }); - +var filename = ''; async.auto({ get_data: function (callback) { }, make_folder: function (callback) { }, - write_file: ['get_data', 'make_folder', function (callback) { + //arrays with different types are not accepted by TypeScript. + write_file: ['get_data', 'make_folder', function (callback) { callback(null, filename); }], - email_link: ['write_file', function (callback, results) { }] + //arrays with different types are not accepted by TypeScript. + email_link: ['write_file', function (callback, results) { }] }); @@ -174,7 +176,7 @@ async.parallel([ function (results) { async.series([ function (callback) { }, - email_link: function(callback) { } + function email_link(callback) { } ]); }); From 42637895f4a1cd4ddd13dd3fcb67b424307e703e Mon Sep 17 00:00:00 2001 From: Diullei Gomes Date: Fri, 1 Feb 2013 19:52:21 -0200 Subject: [PATCH 2/2] fix #241 --- jquery/jquery.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 3d5f8df14a..26ec71f474 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -266,7 +266,7 @@ interface JQueryStatic { *******/ proxy(fn : (...args: any[]) => any, context: any, ...args: any[]): any; proxy(context: any, name: string, ...args: any[]): any; - Deferred(): JQueryDeferred; + Deferred(fn? : (d: JQueryDeferred) => any): JQueryDeferred; Event(name:string, eventProperties?:any): JQueryEventObject; /*********