TypeScript

This topic applies to

Applies to

SuiteCommerce Advanced

 

Beginning with the 2019.2 release of SuiteCommerce Advanced, core source code transitions to TypeScript using a phased migration schedule. TypeScript is an open source superset of JavaScript designed to optimize development efficiency. To learn more about TypeScript, see Typescriptlang.org.

Important

Core SuiteCommerce Advanced code is only for core SuiteCommerce Advanced customization. You should continue to use extensions for your code customizations. See Customize and Extend Core SuiteCommerce Advanced Modules.


The code migration to TypeScript spans several releases, beginning at 2019.2. See the table below for a high-level summary of completed migration phase tasks.

SuiteCommerce Advanced Release

TypeScript Migration Phase Tasks

2019.2

  • Change filename extension from .js to .ts.

  • Transform module system from Asynchronous Module Definition (AMD) to a TypeScript compatible (common JavaScript) system.

TypeScript code compiles to common JavaScript. Gulp tasks performed when running gulp local and gulp deploy commands automatically compile all SuiteCommerce Advanced TypeScript files to JavaScript. JavaScript files ultimately deploy to your NetSuite account.