diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2022-02-07 15:38:37 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2022-02-07 16:01:12 +0100 |
commit | 77544bdfad2af41514ec1435f706fee87ea2969e (patch) | |
tree | 4de23870e08711da25ff92e9670370fc0a74e459 /viz.js/dispatch.mli | |
parent | ad526111f0dd619ae9e0e98ef2253146b58a068f (diff) |
Added viz.js code
Diffstat (limited to 'viz.js/dispatch.mli')
-rwxr-xr-x | viz.js/dispatch.mli | 12 |
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 |