From fb56d2f147a18036db81ed0d8f5902990262a1b3 Mon Sep 17 00:00:00 2001 From: Tony Fettes Date: Sat, 13 Jul 2024 16:27:00 +0800 Subject: [PATCH] relax postMessage type requirements --- src/Webapi/Dom/Webapi__Dom__Window.re | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Webapi/Dom/Webapi__Dom__Window.re b/src/Webapi/Dom/Webapi__Dom__Window.re index 3f75699..70ca949 100644 --- a/src/Webapi/Dom/Webapi__Dom__Window.re +++ b/src/Webapi/Dom/Webapi__Dom__Window.re @@ -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";