diff --git a/TS.fsx b/TS.fsx index eef1f373d..209a9f1c5 100644 --- a/TS.fsx +++ b/TS.fsx @@ -1523,6 +1523,10 @@ module Emit = // Add missed interface definition from the spec InputJson.getAddedItems InputJson.Interface flavor |> Array.iter EmitAddedInterface + // Alias EventListener for compatibility + Pt.Printl "declare type EventListenerOrEventListenerObject = EventListener;" + Pt.Printl "" + EmitCallBackFunctions flavor if flavor <> Worker then diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 480e9f93a..3a36bb50d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -14924,6 +14924,8 @@ declare var Animation: { new(effect?: AnimationEffectReadOnly, timeline?: AnimationTimeline): Animation; }; +declare type EventListenerOrEventListenerObject = EventListener; + interface DecodeErrorCallback { (error: DOMException): void; } diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index aaec633ed..3be025eca 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -1843,6 +1843,8 @@ interface EventSourceInit { readonly withCredentials: boolean; } +declare type EventListenerOrEventListenerObject = EventListener; + interface DecodeErrorCallback { (error: DOMException): void; }