Skip to content

Commit

Permalink
relax postMessage type requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Fettes committed Jul 13, 2024
1 parent d5ce533 commit fb56d2f
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, string) => unit = "postMessage"; /* experimental-ish?, Web Messaging */
external postMessage: ('a) => unit = "postMessage"; /* experimental-ish?, Web Messaging */
[@mel.send.pipe: t_window]
external postMessageWithTransfers: ('a, string, array(transferable)) => unit =
external postMessageWithTransfers: ('a, 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 fb56d2f

Please sign in to comment.