TypeScript adds a static typing scheme to JavaScript.
DefinitelyTyped provides a large repository
of TypeScript definition files for JavaScript libraries.
The burning question is can TypeScript definitions be usefully converted to OCaml for use with js_of_ocaml?
There are three parts to this
- Parse the TypeScript definition files
- Define a mapping from the TypeScript to OCaml type system.
- As automatically as possible do the conversion
A rough and ready parser which can successfully parse the whole DefinitelyType repository.
Starting to consider how to convert to ocaml.
- Terrible error localisation