From 77544bdfad2af41514ec1435f706fee87ea2969e Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 7 Feb 2022 15:38:37 +0100 Subject: Added viz.js code --- viz.js/dispatch.mli | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 viz.js/dispatch.mli (limited to 'viz.js/dispatch.mli') diff --git a/viz.js/dispatch.mli b/viz.js/dispatch.mli new file mode 100755 index 0000000..8d8999b --- /dev/null +++ b/viz.js/dispatch.mli @@ -0,0 +1,12 @@ +open Js_of_ocaml + +type t + +(** Register a new function with the given event *) +val register: 'a Dom.Event.typ -> ('a -> unit) -> t + +(* Remove the handler for the event *) +val remove: 'a Dom.Event.typ -> t -> unit + +(* Call the event *) +val call: 'a Dom.Event.typ -> 'a -> unit -- cgit v1.2.3