diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index f1515ac85..240d0c17f 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -18668,7 +18668,7 @@ interface WindowEventHandlersEventMap { "pagehide": PageTransitionEvent; "pageshow": PageTransitionEvent; "popstate": PopStateEvent; - "rejectionhandled": Event; + "rejectionhandled": PromiseRejectionEvent; "storage": StorageEvent; "unhandledrejection": PromiseRejectionEvent; "unload": Event; @@ -18687,7 +18687,7 @@ interface WindowEventHandlers { onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; - onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null; + onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null; onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null; onunload: ((this: WindowEventHandlers, ev: Event) => any) | null; @@ -19939,7 +19939,7 @@ declare var ononline: ((this: Window, ev: Event) => any) | null; declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; -declare var onrejectionhandled: ((this: Window, ev: Event) => any) | null; +declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null; declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null; declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null; declare var onunload: ((this: Window, ev: Event) => any) | null; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index f7593aeb4..7af5def59 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -195,6 +195,10 @@ { "name": "unhandledrejection", "type": "PromiseRejectionEvent" + }, + { + "name": "rejectionhandled", + "type": "PromiseRejectionEvent" } ] }