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; 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"