To better support writing and maintaining the growing source code, we want to move the JavaScript files to TypeScript. Compile and Build TypeScript Code describes how to add a nuget package that will automatically compile .ts files along with .NET compilation.
- Add the nuget package referenced above.
- Convert all existing
.js files to a .ts file.
- Organize
.ts files in a Scripts folder.
- Import type definitions from esri: Using TypeScript with the ArcGIS API for JavaScript.
- Update code to include function and object types.
To better support writing and maintaining the growing source code, we want to move the JavaScript files to TypeScript. Compile and Build TypeScript Code describes how to add a nuget package that will automatically compile
.tsfiles along with .NET compilation..jsfiles to a.tsfile..tsfiles in aScriptsfolder.