Skip to content

Commit 34bf352

Browse files
committed
Merge pull request #64 from YuichiNukiyama/fix5708
Change TouchEvent on() handlers type
2 parents 8781db5 + 0e123ec commit 34bf352

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

baselines/dom.generated.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11938,10 +11938,10 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1193811938
onsubmit: (ev: Event) => any;
1193911939
onsuspend: (ev: Event) => any;
1194011940
ontimeupdate: (ev: Event) => any;
11941-
ontouchcancel: any;
11942-
ontouchend: any;
11943-
ontouchmove: any;
11944-
ontouchstart: any;
11941+
ontouchcancel: (ev: TouchEvent) => any;
11942+
ontouchend: (ev: TouchEvent) => any;
11943+
ontouchmove: (ev: TouchEvent) => any;
11944+
ontouchstart: (ev: TouchEvent) => any;
1194511945
onunload: (ev: Event) => any;
1194611946
onvolumechange: (ev: Event) => any;
1194711947
onwaiting: (ev: Event) => any;
@@ -12806,10 +12806,10 @@ declare var onstorage: (ev: StorageEvent) => any;
1280612806
declare var onsubmit: (ev: Event) => any;
1280712807
declare var onsuspend: (ev: Event) => any;
1280812808
declare var ontimeupdate: (ev: Event) => any;
12809-
declare var ontouchcancel: any;
12810-
declare var ontouchend: any;
12811-
declare var ontouchmove: any;
12812-
declare var ontouchstart: any;
12809+
declare var ontouchcancel: (ev: TouchEvent) => any;
12810+
declare var ontouchend: (ev: TouchEvent) => any;
12811+
declare var ontouchmove: (ev: TouchEvent) => any;
12812+
declare var ontouchstart: (ev: TouchEvent) => any;
1281312813
declare var onunload: (ev: Event) => any;
1281412814
declare var onvolumechange: (ev: Event) => any;
1281512815
declare var onwaiting: (ev: Event) => any;

inputfiles/overridingTypes.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,5 +364,25 @@
364364
"kind": "callback",
365365
"name": "DecodeErrorCallback",
366366
"signatures": ["(error: DOMException): void"]
367+
},
368+
{
369+
"kind": "property",
370+
"name": "ontouchcancel",
371+
"type": "(ev: TouchEvent) => any"
372+
},
373+
{
374+
"kind": "property",
375+
"name": "ontouchend",
376+
"type": "(ev: TouchEvent) => any"
377+
},
378+
{
379+
"kind": "property",
380+
"name": "ontouchmove",
381+
"type": "(ev: TouchEvent) => any"
382+
},
383+
{
384+
"kind": "property",
385+
"name": "ontouchstart",
386+
"type": "(ev: TouchEvent) => any"
367387
}
368388
]

0 commit comments

Comments
 (0)