Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TS.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14924,6 +14924,8 @@ declare var Animation: {
new(effect?: AnimationEffectReadOnly, timeline?: AnimationTimeline): Animation;
};

declare type EventListenerOrEventListenerObject = EventListener;

interface DecodeErrorCallback {
(error: DOMException): void;
}
Expand Down
2 changes: 2 additions & 0 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1843,6 +1843,8 @@ interface EventSourceInit {
readonly withCredentials: boolean;
}

declare type EventListenerOrEventListenerObject = EventListener;

interface DecodeErrorCallback {
(error: DOMException): void;
}
Expand Down