ceifa/wasmoon

How can I register a javascript custom type into Lua?

luyufxckyouall opened this issue · 1 comments

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?

Yes, exactly like that!