<?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 Type definition bug: ModelOfType maps HeatChart to never, so createModel cannot infer HeatChartModel in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699102#M88394</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/charts-components@5.0.18&lt;/P&gt;&lt;P&gt;The TypeScript type mapping for `ModelOfType&amp;lt;T&amp;gt;` excludes heat charts by mapping `ModelTypes.HeatChart` to `never`.&lt;BR /&gt;Because `createModel` returns `Promise&amp;lt;ModelOfType&amp;lt;T&amp;gt;&amp;gt;`, this causes incorrect typing for heat chart creation even though heat charts are supported and created at runtime.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { createModel, ModelTypes } from "@arcgis/charts-components";
import FeatureLayer from "@arcgis/core/layers/FeatureLayer";

const layer = new FeatureLayer({ url: "..." });

const model = await createModel({
  chartType: ModelTypes.HeatChart,
  layer
});

// Expected: model inferred as BarChartModel | LineChartModel | ComboBarLineChartModel | BoxPlotModel | PieChartModel | ScatterplotModel | HistogramModel | GaugeModel | RadarChartModel | HeatChartModel

// Actual: model inferred as BarChartModel | LineChartModel | ComboBarLineChartModel | BoxPlotModel | PieChartModel | ScatterplotModel | HistogramModel | GaugeModel | RadarChartModel&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Impact&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Incorrect IntelliSense and type narrowing for heat chart workflows.&lt;BR /&gt;- Forces consumer-side assertions/workarounds for otherwise valid API usage.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2026 18:13:21 GMT</pubDate>
    <dc:creator>DanRussell</dc:creator>
    <dc:date>2026-04-29T18:13:21Z</dc:date>
    <item>
      <title>Type definition bug: ModelOfType maps HeatChart to never, so createModel cannot infer HeatChartModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699102#M88394</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/charts-components@5.0.18&lt;/P&gt;&lt;P&gt;The TypeScript type mapping for `ModelOfType&amp;lt;T&amp;gt;` excludes heat charts by mapping `ModelTypes.HeatChart` to `never`.&lt;BR /&gt;Because `createModel` returns `Promise&amp;lt;ModelOfType&amp;lt;T&amp;gt;&amp;gt;`, this causes incorrect typing for heat chart creation even though heat charts are supported and created at runtime.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { createModel, ModelTypes } from "@arcgis/charts-components";
import FeatureLayer from "@arcgis/core/layers/FeatureLayer";

const layer = new FeatureLayer({ url: "..." });

const model = await createModel({
  chartType: ModelTypes.HeatChart,
  layer
});

// Expected: model inferred as BarChartModel | LineChartModel | ComboBarLineChartModel | BoxPlotModel | PieChartModel | ScatterplotModel | HistogramModel | GaugeModel | RadarChartModel | HeatChartModel

// Actual: model inferred as BarChartModel | LineChartModel | ComboBarLineChartModel | BoxPlotModel | PieChartModel | ScatterplotModel | HistogramModel | GaugeModel | RadarChartModel&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Impact&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Incorrect IntelliSense and type narrowing for heat chart workflows.&lt;BR /&gt;- Forces consumer-side assertions/workarounds for otherwise valid API usage.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 18:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699102#M88394</guid>
      <dc:creator>DanRussell</dc:creator>
      <dc:date>2026-04-29T18:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Type definition bug: ModelOfType maps HeatChart to never, so createModel cannot infer HeatChartModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699347#M88397</link>
      <description>&lt;P&gt;Additionally,&amp;nbsp;&lt;SPAN&gt;HeatChartModel is not included here:&lt;/SPAN&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;\charts-components\dist\model\index.d.ts&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 16:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699347#M88397</guid>
      <dc:creator>DanRussell</dc:creator>
      <dc:date>2026-04-30T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Type definition bug: ModelOfType maps HeatChart to never, so createModel cannot infer HeatChartModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699400#M88399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/568195"&gt;@DanRussell&lt;/a&gt;, thanks for letting us know about the typing issue here. We have looked into the issue and will be fixing for the upcoming release (version 5.1).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 17:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/type-definition-bug-modeloftype-maps-heatchart-to/m-p/1699400#M88399</guid>
      <dc:creator>HaoyanChen</dc:creator>
      <dc:date>2026-04-30T17:35:08Z</dc:date>
    </item>
  </channel>
</rss>

