We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given some atd file in a module Answer:
Answer
type value = [ | True | False ] <ocaml repr="classic"> type t = { ~mode <ocaml default="False"> : value; }
when calling from native:
utop # Answer_j.string_of_t {mode = False};; - : string = "{}"
but from JavaScript:
$ Answer_bs.write_t({mode: False})->Js.Json.stringify {"mode":"False"}
The expected result should be same as native:
$ Answer_bs.write_t({mode: False})->Js.Json.stringify {}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given some atd file in a module
Answer
:when calling from native:
but from JavaScript:
The expected result should be same as native:
The text was updated successfully, but these errors were encountered: