Skip to content

Commit 16df030

Browse files
committed
Update addEventlistener in Global.res
1 parent 66127fe commit 16df030

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Global.res

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ The event listener is appended to target's event listener list and is not append
535535
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
536536
*/
537537
external addEventListener: (
538-
~type_: string,
538+
~type_: eventType,
539539
~callback: eventListener<'event>,
540540
~options: addEventListenerOptions=?,
541541
) => unit = "addEventListener"
@@ -556,10 +556,10 @@ If an AbortSignal is passed for options's signal, then the event listener will b
556556
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
557557
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
558558
*/
559-
external addEventListener2: (
560-
~type_: string,
559+
external addEventListener_useCapture: (
560+
~type_: eventType,
561561
~callback: eventListener<'event>,
562-
~options: bool=?,
562+
@as(json`true`) _,
563563
) => unit = "addEventListener"
564564

565565
/**
@@ -576,10 +576,10 @@ external removeEventListener: (
576576
Removes the event listener in target's event listener list with the same type, callback, and options.
577577
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
578578
*/
579-
external removeEventListener2: (
580-
~type_: string,
579+
external removeEventListener_useCapture: (
580+
~type_: eventType,
581581
~callback: eventListener<'event>,
582-
~options: bool=?,
582+
@as(json`true`) _,
583583
) => unit = "removeEventListener"
584584

585585
/**

0 commit comments

Comments
 (0)