-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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) list
with[@js.dict]
to indicate that values of this type should be mapped to JS objects in the obvious way (and vice-versa).