Skip to content

Commit e57ffd8

Browse files
author
Micah Zoltu
authored
Makes the ontouch* events on window optional.
Browsers without touch support (e.g., Firefox/Chrome on desktop) will not have `ontouch*` events defined on `window`, so the current type definition is not correct.
1 parent 353a0cf commit e57ffd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6061,10 +6061,10 @@ interface GlobalEventHandlers {
60616061
*/
60626062
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
60636063
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6064-
ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6065-
ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6066-
ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6067-
ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6064+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6065+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6066+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
6067+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
60686068
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
60696069
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
60706070
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;

0 commit comments

Comments
 (0)