ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
449 stars 29 forks source link

How can I register a javascript custom type into Lua? #110

Closed luyufxckyouall closed 3 months ago

luyufxckyouall commented 4 months ago

For example: export default class MyClass{ public static data:string = "hello"; }

Then how can I use "MyClass" type in Lua? Can Just like js,: print(MyClass.data)--log hello?

ceifa commented 3 months ago

Yes, exactly like that!