From b952cbe30bb17d29ebd1fbf085adba8bb4387f1a Mon Sep 17 00:00:00 2001 From: Steve Jenkins Date: Tue, 22 Nov 2016 08:42:09 +0000 Subject: [PATCH] update as per comment --- promise-polyfill/index.d.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/promise-polyfill/index.d.ts b/promise-polyfill/index.d.ts index 442e8461ec..703f7a6a8c 100644 --- a/promise-polyfill/index.d.ts +++ b/promise-polyfill/index.d.ts @@ -3,21 +3,4 @@ // Definitions by: Steve Jenkins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export as namespace Promise; - -export = Promise; -declare var Promise: Promise.IPromise; - -declare namespace Promise { - export interface IPromise { - new (resolver: (resolve: (value: T) => void, reject: (reason: any) => void) => void): IThenable; - resolve: (value: T) => IThenable; - reject: (value: T) => IThenable; - all: (array: Array>) => IThenable>; - } - - export interface IThenable { - then(onFulfilled?: (value: T) => IThenable|R, onRejected?: (error: any) => IThenable|R): IThenable; - catch(onRejected?: (error: any) => IThenable|R): IThenable; - } -} +export default Promise; \ No newline at end of file