From 3820b29d9c40f6e73b08f8286cb821765dcc7f20 Mon Sep 17 00:00:00 2001 From: Daniel Borkan Date: Wed, 14 May 2014 18:32:37 -0400 Subject: [PATCH 1/2] Allow Promise.reject to be treated as returning Promise --- interfaces/promise.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces/promise.d.ts b/interfaces/promise.d.ts index f8521af..08ea05a 100644 --- a/interfaces/promise.d.ts +++ b/interfaces/promise.d.ts @@ -42,6 +42,8 @@ declare class Promise { static resolve() : Promise; static reject(e:Error) : Promise; + // Allow casting of Promise.reject to Promise. + static reject() : Promise; static all(promiseArray:Thenable[]) : Promise; static race(...args:Thenable[]) : Promise; From de77cd68088628ead8f45994089e1c6d99c9e738 Mon Sep 17 00:00:00 2001 From: Daniel Borkan Date: Wed, 14 May 2014 18:33:30 -0400 Subject: [PATCH 2/2] Update NPM version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 042be88..209d21a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "freedom-typescript-api", "description": "TypeScript Interface for Freedom", - "version": "0.1.6", + "version": "0.1.7", "repository": { "type": "git", "url": "https://github.com/freedomjs/typescript-api"