TypeScript

This topic applies to

Applies to

SuiteCommerce Advanced

 

SuiteCommerce Advanced core source code continues to transition 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. See the table below for a high-level summary of completed migration 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.

2020.1

  • Implement base class for Models

  • Implement base class for Collection

  • Migrate Utils.ts

  • Migrate Case.Model

  • Migrate Case.Collection

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.