ioBroker.javascript
ioBroker.javascript copied to clipboard
4.x: Cannot switch type of script (JS <-> TS)
This is not planned. May be TS => JS could work..... But not planned
JS is valid TypeScript, except it is missing some type annotations, so that doesn't require any major work. Also I'm not talking about conversion or something, just changing the engine of an existing script.
Example: I create a script in JS. Later I think "I'd much rather have this be a TS script". Now I have to make a new script as TS, copy the code, delete the old script and rename the new one.
I would be fine with having to change the code manually. The way it is now, I have to edit the script object if I want to avoid doing all the copy/pasting.