TypeScript to js_of_ocaml