TypeScript with the ArcGIS API 4 for JavaScript
This demo highlights using TypeScript typings with vanilla JS to get intellisense and use TypeScript compiler to output JavaScript ESM to AMD to still use the ArcGIS JS CDN.
- Clone the repo and
npm install
dependencies npm run dev
to compile/src/main.js
tomain.js
in theapp
folder and watch for changes- launch
index.html
in your browser of choice.