What is the recommended way to use interfaces when using ES modules (@arcgis/core)?
For example, I have an Angular application that I have loaded:
import GeoJSONLayer from '@arcgis/core/layers/GeoJSONLayer';
import Graphic from '@arcgis/core/Graphic';
How would I gain access to a type like MapViewProperties?
I've tried installing the @types/arcgis-js-api package in addition to @arcgis/core, but that seems like it would be overkill.
Example:
import ImageryLayer from '@arcgis/core/layers/ImageryLayer';
import GeoJSONLayer from '@arcgis/core/layers/GeoJSONLayer';
import Esri = __esri; // <--- used just for interfaces
const mapOptions: Esri.MapProperties = {...}; What's the recommended approach?
Thanks!