When using the `arcgis/core` library, how do you gain access to all of the interface types (that aren't explicitly classes)? For example: `EditResult` or `SpatialReferenceProperties`, etc.
In previous versions, Esri recommended doing:
import Esri = __esri;
const result:Esri.EditsResult = await layer.applyEdits(...);
However, since the latest JS version Esri has recommended against doing this and instead recommends pulling the types via ESM modules:
import type WebMap from "@arcgis/core/WebMap.js";
However, that doesn't work for interfaces/types that aren't defined as classes.
How should we gain access to all of the ArcGIS JS API types (interfaces/types/etc.) in "@arcgis/core" library?
Hi @RussellMGreen unfortunately we don't currently have a way to export interfaces and other types. You will still need to use the __esri namespace for gaining access to most items that are not classes. We do have an issue open for improving this in the future.
This is covered in 4.28.10
https://developers.arcgis.com/javascript/latest/release-notes/