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