A quick question, does ct.js support scripting with TypeScript. If not, is it planned? I found that we can wrtie type definition files, so that code completion will pick types up, but I'm not sure about TypeScript scripting. Thanks.
AlexKotik If not, is it planned?
Currently not. Perhaps it will be in v3 or something. But firstly we need to make v2.
TypeScript language mode is enabled in the code editors to enable type checks based on mods' and ct.js' declaration files.
Well, I tested it. In the editor TypeScript syntax is supported, but when you start your game TypeScript code is not compiled and I ended up with actual TypeScript code in the browser. Having TypeScript code compiled would be a great feature. I believe that TypeScript compiler is Apache Licence, so it can be integrated into the compilation pypeline used in the editor without any licencing issues.