LexiFi / gen_js_api

Easy OCaml bindings for Javascript libraries
MIT License
177 stars 31 forks source link

Support for simple module construction. #175

Closed sbriais closed 6 days ago

sbriais commented 1 week ago

This PR adds support for

This can be convenient when writing interfaces and referring to other components.

For instance, in another mli

module Event = Js_browser.Event

val foo: Event.t -> string -> unit [@@js.call]

This way, we can just write Event and not Js_browser.Event everywhere.