Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias EventListenerOrEventListenerObject to EventListener #374

Closed
wants to merge 1 commit into from
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