So I have added the Suitescript 2.0 api as an exte...
# suitescript
s
So I have added the Suitescript 2.0 api as an external lib in webstorm, but is there a way to get intellisense for the scriptContext?
s
the best intellisense in my opinion comes from the community driven @hitc/netsuite-types project (see npm/github)
💯 1
👍🏼 1
I think people are using that with JS as well (not just TS)
d
I 2nd that opinion ^ and yes can be used with just JS I have less experience with WebStorm, but I think the referenced npm lib can be used alongside the SuiteCloud IDE Plugin there as well (the NS Plugin being installed is what I have seen in the past grants (limited) intellisense by default) so if that is not installed, that might be the source of your original issue, I don't think you have to add anything manually in that case
s
I absolutely love typescript, so I may take a look at this! My only worry may be comparing files, but they may already have that handled.
Man, I was trying to switch to using typescript, but I have so many libraries that are javascript that I don't think I can make the switch without a TON of work
d
@screnshaw I would still recommend using the TS Types library we referenced, as mentioned it can just be used in conjunction with JavaScript as well with not too much rework
s
Yeah, I am. It's nice to have! Man, I love typescript so I may go back to it. Just so much work was written before I got hired and I have so many libraries.
👍 1
s
Read through the typescript docs - you can incrementally do Typescript - you don't have to convert or strongly type all your existing stuff. I'd also wonder why you have "_so many libraries_"? If those libraries do things that other open source libraries already do, it may be an easy thing to replace them and be an all around win.