summaryrefslogtreecommitdiff
path: root/viz.js/dispatch.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2022-02-07 15:38:37 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-02-07 16:01:12 +0100
commit77544bdfad2af41514ec1435f706fee87ea2969e (patch)
tree4de23870e08711da25ff92e9670370fc0a74e459 /viz.js/dispatch.mli
parentad526111f0dd619ae9e0e98ef2253146b58a068f (diff)
Added viz.js code
Diffstat (limited to 'viz.js/dispatch.mli')
-rwxr-xr-xviz.js/dispatch.mli12
1 files changed, 12 insertions, 0 deletions
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