ts2fable
ts2fable copied to clipboard
Import instead of global
Hi,
I just tested to create some bindings for a lib which is within global scope with latest github version.
.ts source is:
declare var memory : Memory;
Generated is:
let [<Import("*","..")>] memory: Memory = jsNative
Wanted is:
let [<Global>] memory: Memory = jsNative
Since I'm not a specialist, I don't know how ts2fable can make the difference. Anyway just wanted to share that with you. 😄