<?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: Coordinate Conversion reverseConvert type issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1240506#M79627</link>
    <description>&lt;P&gt;For anyone who is coming to this issue in the future - the reason for this issue is that the types are incorrectly defined in esri's interface.ts file. I have raised the issue with ESRI via premium support, and provided them with the correct type definition but incredibly they refuse to raise a bug to resolve it. I will post any workarounds if I come up with any.&lt;BR /&gt;&lt;BR /&gt;For reference, this is the incorrect type definition currently in the &lt;A href="https://raw.githubusercontent.com/Esri/arcgis-js-api/4master/interfaces.d.ts" target="_self"&gt;interface file&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; /**
   * This object describes how a Format should be projected and formatted for display.
   *
   * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
   */
  export interface ConversionInfo extends Object {
    /**
     * A function that takes a point and returns a [position](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position).
     *
     * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
     */
    convert(): void;
    /**
     * A function that takes a string and returns a Point.
     *
     * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
     */
    reverseConvert(): void;
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 10:10:46 GMT</pubDate>
    <dc:creator>Char10773g</dc:creator>
    <dc:date>2022-12-13T10:10:46Z</dc:date>
    <item>
      <title>Coordinate Conversion reverseConvert type issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1235328#M79454</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to follow &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-coordinateconversion-custom" target="_self"&gt;this code snippet&lt;/A&gt; to add a new Format to the coordinate conversion widget. The problem I am having is that the reverseConvert property on the ConversionInfo type appears to be expecting a function with no arguments that does not return anything, but the example is passing a string and returning a Point.&lt;/P&gt;&lt;P&gt;The error is:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Type '(string: String) =&amp;gt; Point' is not assignable to type '() =&amp;gt; void'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone come across this error before and found a workaround?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1235328#M79454</guid>
      <dc:creator>Char10773g</dc:creator>
      <dc:date>2022-11-28T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate Conversion reverseConvert type issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1235371#M79456</link>
      <description>&lt;P&gt;The example also uses the property spatialReference - which also appears to be not defined in the interface&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Object literal may only specify known properties, and 'spatialReference' does not exist in type 'ConversionInfo'.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Any advice for implementing new formats/conversions much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 14:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1235371#M79456</guid>
      <dc:creator>Char10773g</dc:creator>
      <dc:date>2022-11-28T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate Conversion reverseConvert type issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1240506#M79627</link>
      <description>&lt;P&gt;For anyone who is coming to this issue in the future - the reason for this issue is that the types are incorrectly defined in esri's interface.ts file. I have raised the issue with ESRI via premium support, and provided them with the correct type definition but incredibly they refuse to raise a bug to resolve it. I will post any workarounds if I come up with any.&lt;BR /&gt;&lt;BR /&gt;For reference, this is the incorrect type definition currently in the &lt;A href="https://raw.githubusercontent.com/Esri/arcgis-js-api/4master/interfaces.d.ts" target="_self"&gt;interface file&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; /**
   * This object describes how a Format should be projected and formatted for display.
   *
   * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
   */
  export interface ConversionInfo extends Object {
    /**
     * A function that takes a point and returns a [position](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position).
     *
     * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
     */
    convert(): void;
    /**
     * A function that takes a string and returns a Point.
     *
     * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
     */
    reverseConvert(): void;
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 10:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/coordinate-conversion-reverseconvert-type-issue/m-p/1240506#M79627</guid>
      <dc:creator>Char10773g</dc:creator>
      <dc:date>2022-12-13T10:10:46Z</dc:date>
    </item>
  </channel>
</rss>

