<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you access all types via ESM import in @arcgis/core in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1361346#M83136</link>
    <description>&lt;P&gt;This is covered in 4.28.10&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/release-notes/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2023 12:35:38 GMT</pubDate>
    <dc:creator>UmutUcok</dc:creator>
    <dc:date>2023-12-15T12:35:38Z</dc:date>
    <item>
      <title>How do you access all types via ESM import in @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1279892#M80911</link>
      <description>&lt;P&gt;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 `&lt;SPAN&gt;SpatialReferenceProperties&lt;/SPAN&gt;&lt;SPAN&gt;`, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In previous versions, Esri recommended doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Esri = __esri;

const result:Esri.EditsResult = await layer.applyEdits(...);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, since the latest JS version Esri has recommended against doing this and instead recommends pulling the types via ESM modules:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import type WebMap from "@arcgis/core/WebMap.js";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, that doesn't work for interfaces/types that aren't defined as classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should we gain access to all of the ArcGIS JS API types (interfaces/types/etc.) in "@arcgis/core" library?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 20:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1279892#M80911</guid>
      <dc:creator>RussellMGreen</dc:creator>
      <dc:date>2023-04-18T20:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you access all types via ESM import in @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1279905#M80912</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435038"&gt;@RussellMGreen&lt;/a&gt; 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.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 20:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1279905#M80912</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-04-18T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you access all types via ESM import in @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1361346#M83136</link>
      <description>&lt;P&gt;This is covered in 4.28.10&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/release-notes/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 12:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-access-all-types-via-esm-import-in/m-p/1361346#M83136</guid>
      <dc:creator>UmutUcok</dc:creator>
      <dc:date>2023-12-15T12:35:38Z</dc:date>
    </item>
  </channel>
</rss>

