a second the suggestion to be explicit on version....
# suitescript
s
a second the suggestion to be explicit on version. However, one nice side effect of programming is typescript is you can switch your target SS version from 2.0 to 2.1 and not change a single line of code.
d
What do you mean by this @stalbert?
s
I mean, you write your typescript code once, but compile it to whatever the target environment supports. This is the
target
property in
tsconfig.json
. So the same TS source code can generate ES5 code (for SS2.0) or say ES2019 code (SS2.1) by changing that config property - and not changing your source code.
(though you do need to chance the SS version number comment to 2.0 or 2.1 accordingly)
d
Right, ya .. I thought I missed something
s
you're not missing anything since you already use TS It's everyone else that's missing out 🙂
d
100% agree