Skip to content

tmattio/js-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCaml JavaScript bindings

Actions Status

High-quality JavaScript bindings for OCaml.

Want bindings for a library? Open an issue!

The bindings have been generated using ts2ocaml from the TypeScript type definitions found in https://github.com/Microsoft/TypeScript/tree/master/lib.

The generated bindings have then been manually modified to improve the API. Notably the bindings differ from the underlying implementation in the following ways:

  • No ArrayLike, ArrayBufferLike, PromiseLike and co. OCaml does not have implicits (yet), so we just replace all of these with their counterparts (ArrayLike is replaced by Array)
  • We don't include Symbols accessors. gen_js_api does not support this, and it really does not seem useful anyways

The bindings don't depend on any PPX (and in particular, they don't depend on gen_js_api). Instead, the generated bindings are promoted and the installable libraries copies the promoted files.

To do

  • Replace cast with include module type of
  • Create the on functions
  • investigate long function variants (''''')
  • Add builder for VSCode

About

High-quality JavaScript bindings for OCaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages