J.J.
J.J.

Reputation: 1118

How to write TypeScript SuiteScripts?

If one wanted to write SuiteScript 2.0 using TypeScript, would it need to be transpiled to ES5 to work in Netsuite? Does anyone know what the best options are if SuiteScripts need to be written in TypeScript? Is there an npm module for such a purpose?

Upvotes: 2

Views: 2594

Answers (1)

bknights
bknights

Reputation: 15367

There is a github project that provides SS2.0 types and a few samples. I’ve been using it for a couple of years and it’s been quite nice. Search github for netsuite-types. I cloned the repo some time ago into https://github.com/BKnights/netsuite-types to try to keep it more up-to-date but in grabbing the link I saw I haven’t pushed anything in more than a year. I have added some fixes though and I’ll try to push when I’m back in the office in the new year.

Upvotes: 4

Related Questions