The arcgis-js-api.d.ts file provides type definitions for ArcGIS API for JavaScript.
A copy of this file is also available at DefinitelyTyped and may be installed using the command:
npm install --save @types/arcgis-js-api
Currently, due to limitations in TypeScript, the APIs autocasting functionality works best in non-TypeScript applications. No changes are required if you are already using the API without any TypeScript build errors.
- TypeScript 2.7+
- TypeScript Editor Support
- Type definitions for many other libraries are available here.