Skip to content

Use Event for scroll/select events #616

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

Merged
merged 1 commit into from
Jan 24, 2019
Merged
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
16 changes: 8 additions & 8 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5336,11 +5336,11 @@ interface GlobalEventHandlersEventMap {
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": UIEvent;
"scroll": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": UIEvent;
"select": Event;
"stalled": Event;
"submit": Event;
"suspend": Event;
Expand Down Expand Up @@ -5571,7 +5571,7 @@ interface GlobalEventHandlers {
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
onscroll: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
Expand All @@ -5587,7 +5587,7 @@ interface GlobalEventHandlers {
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
Expand Down Expand Up @@ -16467,10 +16467,10 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
"readystatechange": ProgressEvent;
"reset": Event;
"resize": UIEvent;
"scroll": UIEvent;
"scroll": Event;
"seeked": Event;
"seeking": Event;
"select": UIEvent;
"select": Event;
"stalled": Event;
"storage": StorageEvent;
"submit": Event;
Expand Down Expand Up @@ -17699,7 +17699,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: UIEvent) => any) | null;
declare var onscroll: ((this: Window, ev: Event) => any) | null;
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
Expand All @@ -17715,7 +17715,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: UIEvent) => any) | null;
declare var onselect: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
Expand Down
4 changes: 2 additions & 2 deletions inputfiles/addedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@
},
{
"name": "scroll",
"type": "UIEvent"
"type": "Event"
},
{
"name": "select",
"type": "UIEvent"
"type": "Event"
},
{
"name": "wheel",
Expand Down