I’m writing a binding to a javascript library. I’m receiving an object from the library whose reason definition should look something like this: {. "name": string, "from": int, "to", int }. However, when I try to access the “to” field, via x##to I get a compilation error about to being a keyword.
The workaround that I’ve come up with is defining the object as a Js.Dict.t(string), however, that has the downside of treating everything in the object as a string, which isn’t correct either (but at least works, AFAICT).
Is there a better way?
