Add [@js.dict], [@@@js.require], [@@js.capitalize]#174
Conversation
|
The second commit adds support for and sets the global object to be would bind https://nodejs.org/api/crypto.html#cryptocreatehashalgorithm-options. The generated javascript contains |
[@js.dict][@js.dict] and [@@@js.require]
|
The third (and last!) commit adds the possibility of telling JSOO to use |
[@js.dict] and [@@@js.require][@js.dict], [@@@js.require], [@@js.capitalize]
|
Friendly ping. |
|
|
Thanks for the review! The changes here are not critical; I suggest we punt this and revisit it later if/as needed. |
This PR adds the possibility of annotating an OCaml type expression
(string * ty) listwith[@js.dict]to indicate that values of this type should be mapped to JS objects in the obvious way (and vice-versa).