ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

4.x: Cannot switch type of script (JS <-> TS)

Open AlCalzone opened this issue 6 years ago • 2 comments

AlCalzone avatar Dec 09 '18 12:12 AlCalzone

This is not planned. May be TS => JS could work..... But not planned

GermanBluefox avatar Feb 25 '19 21:02 GermanBluefox

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.

AlCalzone avatar Feb 26 '19 06:02 AlCalzone