<?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: Typescript error TS2349 on view.goTo in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588096#M54926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kelly, I downloaded the new type file and still get same error, could it because npm packages I used are different? here're what I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #66d9ef;"&gt;"typescript"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^2.6.2"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;"ts-loader"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^3.2.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;"tslint"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^5.8.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Could you upload your sample project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;DIV style="background-color: #272822; font-weight: normal;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 18:35:04 GMT</pubDate>
    <dc:creator>mingleidi</dc:creator>
    <dc:date>2017-12-20T18:35:04Z</dc:date>
    <item>
      <title>Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588093#M54923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using&amp;nbsp;MapView.goTo, it always gives&amp;nbsp;Typescript error TS2349: Cannot invoke an expression whose type lacks a call signature. Type '((target: Geometry | Graphic | Graphic[] | Viewpoint | number[] | Geometry[] | MapViewGoToTarget,...' has no&amp;nbsp;compatible call signatures.&lt;/P&gt;&lt;P&gt;The goto function working fine, just this tslint error breaks the build.&lt;/P&gt;&lt;P&gt;Does anyone have similar issues? below is my code:&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;matchedGraphic&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;!=&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;let&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;point&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;matchedGraphic&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e; text-decoration: underline;"&gt;Point&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;goTo&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; center: [&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;point&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;longitude&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;point&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;latitude&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; zoom: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;8&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; }, {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; speedFactor: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; easing: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"linear"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;popup&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;open&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; features: [&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;matchedGraphic&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;], &lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;// array of graphics&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; featureMenuOpen: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;// selected features initially display in a list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; location: &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;matchedGraphic&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;geometry&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #f8f8f2;"&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The typing file is:&lt;/P&gt;&lt;P&gt;goTo(target: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | MapViewGoToTarget, options?: MapViewGoToOptions): IPromise&amp;lt;ViewAnimation&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just don't understand why tslint give this error, can someone shed some lights?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 22:41:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588093#M54923</guid>
      <dc:creator>mingleidi</dc:creator>
      <dc:date>2017-12-18T22:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588094#M54924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After spent some time on google, seems it's because view.goto() uses union types which typescript doesn't like, one solution is to change source code to use method overload, which is not an option for me. Are there any other ways to resolve it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588094#M54924</guid>
      <dc:creator>mingleidi</dc:creator>
      <dc:date>2017-12-19T21:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588095#M54925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran a quick test using the latest version of the API (4.6) and the typings from &lt;A href="https://github.com/Esri/jsapi-resources/blob/master/4.x/typescript/arcgis-js-api.d.ts"&gt;here&lt;/A&gt;&amp;nbsp;and when I didn't get any errors when transpiling. Here's the code I used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #eeffff; background-color: #252526; font-weight: normal; font-size: 12px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c792ea;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;esri/Map&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c792ea;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;esri/views/MapView&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c792ea;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;Basemap&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;esri/Basemap&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c792ea;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; Map(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; basemap&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;Basemap&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;fromId&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;streets&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #89ddff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c792ea;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; MapView(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; map&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; container&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; center&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;118.244&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;34.052&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffcb6b;"&gt;any&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; zoom&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #89ddff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;goTo&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; center&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;32.71&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;117.16&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; zoom&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;8&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #eeffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #89ddff;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #eeffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #89ddff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 23:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588095#M54925</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2017-12-19T23:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588096#M54926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kelly, I downloaded the new type file and still get same error, could it because npm packages I used are different? here're what I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #66d9ef;"&gt;"typescript"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^2.6.2"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;"ts-loader"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^3.2.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #66d9ef;"&gt;"tslint"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #cfcfc2;"&gt;"^5.8.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Could you upload your sample project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;DIV style="background-color: #272822; font-weight: normal;"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 18:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588096#M54926</guid>
      <dc:creator>mingleidi</dc:creator>
      <dc:date>2017-12-20T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588097#M54927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be a version thing. I am using Visual Studio Code and the version I'm using has TypeScript 2.6.1. and TSLint from here:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Microsoft/vscode-tslint" title="https://github.com/Microsoft/vscode-tslint"&gt;GitHub - Microsoft/vscode-tslint: A tslint integration for vscode&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my test app.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 18:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588097#M54927</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2017-12-20T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Typescript error TS2349 on view.goTo</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588098#M54928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kelly, after compared your project with mine, I found the cause is that my view is declared as union type:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #f8f8f2; background-color: #272822; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #fd971f;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e; text-decoration: underline;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f2;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e; text-decoration: underline;"&gt;SceneView;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if these two views has same goTo functions, typescript still doesn't like it, after manually cast my view to specific type, the error is gone, the error message is kind of misleading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help. much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 18:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-ts2349-on-view-goto/m-p/588098#M54928</guid>
      <dc:creator>mingleidi</dc:creator>
      <dc:date>2017-12-21T18:34:38Z</dc:date>
    </item>
  </channel>
</rss>

