laptop and a wrench

Bug

The TypeScript typing for the Collection class in ArcGIS Maps SDK for JavaScript does not reflect the correct type for an undefined value.

ArcGIS Maps SDK for JavaScript
Bug ID Number BUG-000170691
SubmittedSeptember 11, 2024
Last ModifiedDecember 6, 2024
Applies toArcGIS Maps SDK for JavaScript
Version found4.30
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusUnder Consideration

Workaround

This issue can be fixed with a local type override. Example:

declare namespace __esri { interface Collection { find(callback: __esri.ItemTestCallback): T | undefined; } }

This correctly signifies the types.

Steps to Reproduce

Bug ID: BUG-000170691

Software:

  • ArcGIS Maps SDK for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options