From 34e2b07e9319c05a18412644619eb0b86a634d6f Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Tue, 21 Jan 2014 19:25:10 +1100 Subject: [PATCH] es6-promises fix whitespace + argument names consistent with http://promises-aplus.github.io/promises-spec/ --- es6-promises/es6-promises.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/es6-promises/es6-promises.d.ts b/es6-promises/es6-promises.d.ts index a44355233..a50cd1fc6 100644 --- a/es6-promises/es6-promises.d.ts +++ b/es6-promises/es6-promises.d.ts @@ -5,10 +5,10 @@ interface Thenable { - then(onFulfill: (value: R) => Thenable, onReject: (error: any) => Thenable): Thenable; - then(onFulfill: (value: R) => Thenable, onReject?: (error: any) => U): Thenable; - then(onFulfill: (value: R) => U, onReject: (error: any) => Thenable): Thenable; - then(onFulfill?: (value: R) => U, onReject?: (error: any) => U): Thenable; + then(onFulfilled: (value: R) => Thenable, onRejected: (error: any) => Thenable): Thenable; + then(onFulfilled: (value: R) => Thenable, onRejected?: (error: any) => U): Thenable; + then(onFulfilled: (value: R) => U, onRejected: (error: any) => Thenable): Thenable; + then(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U): Thenable; } @@ -130,4 +130,4 @@ declare module Promise { * Make a Promise that fulfills when any item fulfills, and rejects if any item rejects. */ function race(promises: Promise[]): Promise; -} \ No newline at end of file +}