<?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: Wrong type definition for .findOAuthInfo in js api 4.10 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551989#M51483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to describe how I overridden the esri's type definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a folder typings/arcgis-js-api&lt;/P&gt;&lt;P&gt;2. Copy type definition file from node_modules/@types/arcgis-js-api/index.d.ts to the new folder (typings/arcgis-js-api)&lt;/P&gt;&lt;P&gt;3. Make changes in the type definitions.&lt;/P&gt;&lt;P&gt;4. Add in tsconfig.json:&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #fdf6e3; font-family: Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;"compilerOptions"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;...&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;"typeRoots"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2aa198;"&gt;"./node_modules/@types"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2aa198;"&gt;"./typings/"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;5. Restart your project "npm start"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2019 11:04:02 GMT</pubDate>
    <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
    <dc:date>2019-03-14T11:04:02Z</dc:date>
    <item>
      <title>Wrong type definition for .findOAuthInfo in js api 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551986#M51480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just discovered a bug in index.d.ts in&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #fdf6e3; font-family: Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;"@types/arcgis-js-api"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #2aa198;"&gt;"^4.10.0"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #333333; background-color: #fdf6e3; font-family: Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #268bd2;"&gt;findOauthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(url&lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #268bd2;"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It must by capital A -&amp;gt; findOAuthInfo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same typo in the documentation: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#findOauthInfo" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#findOauthInfo"&gt;IdentityManager | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to use js api 4.10 with old types @types/arcgis-js-api@4.9.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you fix it, please &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 15:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551986#M51480</guid>
      <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
      <dc:date>2019-01-07T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type definition for .findOAuthInfo in js api 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551987#M51481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reporting the issue we'll get the doc (and typings) fixed.&amp;nbsp; When I run into situations like this I create a file in my project called updates.d.ts and 'fix' the typo in that file similar to the instructions outlined here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/40322788/how-to-overwrite-incorrect-typescript-type-definition-installed-via-types-packa?rq=1" title="https://stackoverflow.com/questions/40322788/how-to-overwrite-incorrect-typescript-type-definition-installed-via-types-packa?rq=1"&gt;How to overwrite incorrect TypeScript type definition installed via @types/package - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way you can continue to use the 4.10 typings and when the new typings are available you can just delete the update file.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 18:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551987#M51481</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2019-01-07T18:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type definition for .findOAuthInfo in js api 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551988#M51482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer! &lt;/P&gt;&lt;P&gt;I would be nice if you could fix this typo in the next version of api.&lt;/P&gt;&lt;P&gt;I will override as you suggested!&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 12:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551988#M51482</guid>
      <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
      <dc:date>2019-01-08T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type definition for .findOAuthInfo in js api 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551989#M51483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just want to describe how I overridden the esri's type definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a folder typings/arcgis-js-api&lt;/P&gt;&lt;P&gt;2. Copy type definition file from node_modules/@types/arcgis-js-api/index.d.ts to the new folder (typings/arcgis-js-api)&lt;/P&gt;&lt;P&gt;3. Make changes in the type definitions.&lt;/P&gt;&lt;P&gt;4. Add in tsconfig.json:&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #fdf6e3; font-family: Menlo, Monaco, 'Courier New', monospace; font-weight: normal; font-size: 12px; line-height: 18px; white-space: pre;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;"compilerOptions"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;...&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #859900;"&gt;"typeRoots"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2aa198;"&gt;"./node_modules/@types"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2aa198;"&gt;"./typings/"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;5. Restart your project "npm start"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!!! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 11:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wrong-type-definition-for-findoauthinfo-in-js-api/m-p/551989#M51483</guid>
      <dc:creator>deleted-user-OOe4JK-9Abnm</dc:creator>
      <dc:date>2019-03-14T11:04:02Z</dc:date>
    </item>
  </channel>
</rss>

