npm install
# run local dev server
npm start
# create a production build
npm run build
You can use the typings included with arcgis-js-api
two ways.
// main.ts
/// <reference types="arcgis-js-api" />
// tsconfig.json
{
"compilerOptions": {},
"include": [
"node_modules/arcgis-js-api/index.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
]
}
Cool stuff coming soon.
reference : https://github.com/Esri/jsapi-resources/tree/master/4.x/typescript/demo