ts2fable icon indicating copy to clipboard operation
ts2fable copied to clipboard

Import instead of global

Open whitetigle opened this issue 6 years ago • 0 comments

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. 😄

whitetigle avatar Mar 21 '19 15:03 whitetigle