Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469309: TypeScript cannot convert 'any' type to Specific type

$
0
0
Reporter Marcin Smółka (msmolka) Marcin Smółka (msmolka)
Created Apr 18, 2018 1:05:24 PM
Updated Apr 18, 2018 1:05:24 PM
Subsystem TypeScript
Assignee Nikita Popov (poksh)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion VS 2017 15.3

After updating to 2018.1 the resharper complains about converting any to specific type in type script file. All is working except of Resharper complain:

let opt: SomeType = window.GetAny(); // first complain - get from javascript thirdparty, outside typescript 
opt = $.extend({}, opt, { myProp: true  } as SomeType); // second complain, property myProp exists on SomeType


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>