ArcGIS API for JavaScript: Using TypeScript