ocsigen / ts2ocaml

Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not generate label arguments for a single argument

tmattio opened this issue · comments

At the moment, ts2ocaml always generates functions with labelled arguments.
The generated API would be much cleaner if functions with a single argument would be generated without labels.
In addition, functions that have a single non-optionnal argument could also have labelled argument only for the optionnal ones.

(this depends on #9)