melange-re.github.io icon indicating copy to clipboard operation
melange-re.github.io copied to clipboard

Explain somewhere how to work with `Js.t` types

Open jchavarri opened this issue 2 years ago • 0 comments

I don't think the docs mention the {. "foo": string} syntax for types, looking at https://melange.re/v2.1.0/communicate-with-javascript/#using-jst-objects.

Also should include some explanation for the Reason syntax feature, where {. "box": string} becomes a shortcut for Js.t({. box: string}).

jchavarri avatar Nov 23 '23 11:11 jchavarri