The arcgis-js-api.d.ts file provides TypeScript type definitions for the ArcGIS Maps SDK for JavaScript's AMD modules.
The .d.ts
declaration file only provides type information and can be downloaded from this repo. A copy of the file is also currently available at DefinitelyTyped and may be installed using the command:
npm install --save @types/arcgis-js-api
.
If you are looking to locally install the SDK library, which contains the full SDK functionality along with the type definitions, then refer to the SDK's Introduction to tooling guide topic.
- 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 SDK without any TypeScript build errors.
- TypeScript 3.7+
- TypeScript Editor Support
- Type definitions for many other libraries are available here.
Copyright 2023 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.