<?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 How do you expose the interfaces used in parameters to other classes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274369#M80712</link>
    <description>&lt;P&gt;I use Typescript for my application and I want to use&amp;nbsp;&lt;SPAN&gt;FeatureLayerProperties to ensure whatever is put through the function, meets the bare minimum requirement for a FeatureLayer for purposes of creation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently I am using a parameter:any, because paramenter:&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties doesn't work, as&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties is not exported by any arcgis library I have found so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to expose&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties to custom functions/methods/classes so that we can have strongly typed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2023 07:53:51 GMT</pubDate>
    <dc:creator>Aeseir</dc:creator>
    <dc:date>2023-04-01T07:53:51Z</dc:date>
    <item>
      <title>How do you expose the interfaces used in parameters to other classes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274369#M80712</link>
      <description>&lt;P&gt;I use Typescript for my application and I want to use&amp;nbsp;&lt;SPAN&gt;FeatureLayerProperties to ensure whatever is put through the function, meets the bare minimum requirement for a FeatureLayer for purposes of creation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently I am using a parameter:any, because paramenter:&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties doesn't work, as&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties is not exported by any arcgis library I have found so far.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to expose&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FeatureLayerProperties to custom functions/methods/classes so that we can have strongly typed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 07:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274369#M80712</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2023-04-01T07:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expose the interfaces used in parameters to other classes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274408#M80713</link>
      <description>&lt;P&gt;You can use some TS utilities to help you out here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;type FeatureLayerProp =  InstanceType&amp;lt;typeof FeatureLayer&amp;gt;;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype" target="_blank"&gt;https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 20:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274408#M80713</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-04-01T20:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expose the interfaces used in parameters to other classes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274432#M80715</link>
      <description>&lt;P&gt;HI&amp;nbsp;Aeseir,&lt;/P&gt;&lt;P&gt;As far as I know that the FeatureLayerProperties interface is not exported by any ArcGIS library, hence, it cannot be used directly in TypeScript code.&amp;nbsp;However, one workaround way to obtain strong typing is to create a custom interface that extends the FeatureLayerProperties interface and includes any additional properties or restrictions that you require for your specific use case. This custom interface can then be used as the type for your function parameter.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.typescriptlang.org/docs/handbook/2/objects.html" target="_blank"&gt;TypeScript: Documentation - Object Types (typescriptlang.org)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 16:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1274432#M80715</guid>
      <dc:creator>Omar_A</dc:creator>
      <dc:date>2023-04-02T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expose the interfaces used in parameters to other classes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1275668#M80757</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;i actually tried that as fallback option way back but it broke a few times during runtime and stopped that using it.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 09:35:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1275668#M80757</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2023-04-05T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expose the interfaces used in parameters to other classes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1275670#M80758</link>
      <description>&lt;P&gt;As you mentioned it is not exported, so you can't build a customer interface that extends unless it is in the file itself where FeatureLayerProperties sits. Which would get overwritten the minute you updated the arcgis sdk, then you back to square one.&lt;BR /&gt;&lt;BR /&gt;Or are you implying another approach that i didn't see in that link?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 09:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-you-expose-the-interfaces-used-in/m-p/1275670#M80758</guid>
      <dc:creator>Aeseir</dc:creator>
      <dc:date>2023-04-05T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

