diff --git a/src/Webapi/Dom/Webapi__Dom__EventTarget.re b/src/Webapi/Dom/Webapi__Dom__EventTarget.re index c112375..8e65da0 100644 --- a/src/Webapi/Dom/Webapi__Dom__EventTarget.re +++ b/src/Webapi/Dom/Webapi__Dom__EventTarget.re @@ -2296,6 +2296,16 @@ module Impl = (T: { ) => unit = "removeEventListener"; + + [@mel.send.pipe: T.t] + external addMessageEventListener: + ([@mel.as "message"] _, Dom.messageEvent => unit) => unit = + "addEventListener"; + + [@mel.send.pipe: t] + external removeMessageEventListener: + ([@mel.as "message"] _, Dom.messageEvent => unit) => unit = + "removeEventListener"; }; include Impl({ diff --git a/src/Webapi/Dom/Webapi__Dom__Worker.re b/src/Webapi/Dom/Webapi__Dom__Worker.re index 664d012..33df32b 100644 --- a/src/Webapi/Dom/Webapi__Dom__Worker.re +++ b/src/Webapi/Dom/Webapi__Dom__Worker.re @@ -9,16 +9,6 @@ include Webapi__Dom__EventTarget.Impl({ [@mel.send.pipe: t] external postMessage: 'a => unit = "postMessage"; [@mel.send.pipe: t] external terminate: unit = "terminate"; -[@mel.send.pipe: t] -external addMessageEventListener: - ([@mel.as "message"] _, Dom.messageEvent => unit) => unit = - "addEventListener"; - -[@mel.send.pipe: t] -external removeMessageEventListener: - ([@mel.as "message"] _, Dom.messageEvent => unit) => unit = - "removeEventListener"; - [@mel.set] external setOnError: (t, Dom.errorEvent => unit) => unit = "onerror"; [@mel.set]