From 2c01a525a8dff303849d8b98c5999be4080e4754 Mon Sep 17 00:00:00 2001 From: epicgirl1998 Date: Fri, 31 Mar 2017 23:23:39 +0300 Subject: [PATCH] Add PromiseRejectionEvent constructor --- baselines/dom.generated.d.ts | 5 +++++ inputfiles/addedTypes.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 106c56d63..0e3c14daf 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -14173,6 +14173,11 @@ interface PromiseRejectionEvent extends Event { readonly reason: any; } +declare var PromiseRejectionEvent: { + prototype: PromiseRejectionEvent; + new(type: string, promiseRejectionEventInitDict?: PromiseRejectionEventInit): PromiseRejectionEvent; +} + interface PromiseRejectionEventInit extends EventInit { promise: PromiseLike; reason?: any; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 14e8a98ba..7e944e684 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1512,7 +1512,10 @@ "name": "reason", "type": "any", "readonly": true - }] + }], + "constructorSignatures": [ + "new(type: string, promiseRejectionEventInitDict?: PromiseRejectionEventInit): PromiseRejectionEvent" + ] }, { "kind": "interface",