Type definitions for ct-mapapps
npm install --save-dev @conterra/ct-mapapps-typings
tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["./src/main/js/bundles/*", "./node_modules/@conterra/ct-mapapps-typings/*"]
}
}
}
tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["./src/main/js/bundles/*", "./node_modules/@conterra/ct-mapapps-typings/*"]
},
"allowJs": true,
"noEmit": true
}
}
We also recommend to install the declaration files for the ArcGIS JavaScript API and the Dojo Toolkit:
$ npm install @types/arcgis-js-api
$ npm install dojo-typings --save-dev
// tsconfig.json
{
"include": [
// ...
"node_modules/dojo-typings/index.d.ts"
]
}