Reporter | 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