ReScript 9.1.2 made the original @meth
semantics inaccessible they said to use @send
external instead to represent method calls
My questions are:
can @send
external be inside a type?
and is this a correct way to use it knowing that it generates the same javascript code?
Using @meth:
@meth
"createElement": string => Web_node.t,
let createElement = typ => document["createElement"](typ
Using @send external:
@send external
createElement: (t,string) => Web_node.t="createElement"
let createElement = typ => createElement(document, typ)