Skip to content

Commit

Permalink
Revert "relax postMessage type requirements"
Browse files Browse the repository at this point in the history
This reverts commit fb56d2f.
  • Loading branch information
tonyfettes committed Aug 5, 2024
1 parent f8b4267 commit 9793fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Webapi/Dom/Webapi__Dom__Window.re
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ module Impl = (T: {
(~url: string, ~name: string, ~features: string=?) => option(Dom.window) =
"open"; /* yes, features is a stringly typed list of key value pairs, sigh */
[@mel.send.pipe: t_window]
external postMessage: ('a) => unit = "postMessage"; /* experimental-ish?, Web Messaging */
external postMessage: ('a, string) => unit = "postMessage"; /* experimental-ish?, Web Messaging */
[@mel.send.pipe: t_window]
external postMessageWithTransfers: ('a, array(transferable)) => unit =
external postMessageWithTransfers: ('a, string, array(transferable)) => unit =
"postMessage"; /* experimental-ish?, Web Messaging */
[@mel.send.pipe: t_window] external print: unit = "print";
[@mel.send.pipe: t_window] external prompt: string => string = "prompt";
Expand Down

0 comments on commit 9793fec

Please sign in to comment.