issues
search
casual-simulation
/
casualos
Casual Open Simulation for the Web
https://ab1.bot
MIT License
48
stars
8
forks
source link
Implement TypeScript Support
#417
Closed
KallynGowdy
closed
4 months ago
KallynGowdy
commented
4 months ago
:rocket: Features
Added support for TypeScript syntax.
TypeScript
is an extension of JavaScript that enables you to add type information to your code.
Combined with ES Modules, this means it is much easier to catch simple bugs because the editor will tell you when something doesn't match up.
For now, errors are only surfaced in each script, but in the future it will be possible to check for errors in any script.
There are a couple limitations:
Generally, any TypeScript feature that requires a significant amount of code generation (e.g.
enums
) are not supported.
Additionally, the
let casted = <any>value;
syntax for casting types is not supported since all scripts support JSX.
Closes #383
:rocket: Features
let casted = <any>value;
syntax for casting types is not supported since all scripts support JSX.Closes #383