export function Numbers(...message_type_args: number[]) {
return <T extends new(...args: any[]) => {}>(constructor: T) => {
return class extends constructor {
protected numbers = message_type_args;
};
};
}
@Numbers(10, 20)
class MyClass {}
const my_instance = new MyClass();
console.log(my_instance.constructor.name);
Running the transpiled Lua code will give "____" as the constructor name.
Running the transpiled Lua code will give "____" as the constructor name.