melange-re / melange-re.github.io

Documentation site for Melange
https://melange.re
25 stars 6 forks source link

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

Open jchavarri opened 11 months ago

jchavarri commented 11 months ago

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}).