Map.on: make handler type be (.. -> unit)
This commit is contained in:
parent
ac7fbb77b8
commit
4eec69fdf6
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ let set_view latlng ~zoom map =
|
|||
in
|
||||
()
|
||||
|
||||
let on : type kind. kind Event.sub -> (kind Event.t -> 'b) -> t -> unit =
|
||||
let on : type kind. kind Event.sub -> (kind Event.t -> unit) -> t -> unit =
|
||||
fun event handler map ->
|
||||
let name = Event.sub_to_string event in
|
||||
let handler v = handler @@ Event.of_jv event v in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue