You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// JavaScript with checkJsconstanyWindow=(/** @type {any} */(window));// Property 'something' does not exist on type 'Window'.constsomething=(/** @type {SomethingConstructor} */(anyWindow.something));
// Workaround for this specific situation/** @type {any} */constanyWindow=window;/** @type {SomethingConstructor} */constsomething=anyWindow.something;
I opened a question on StackOverflow and got no answers, so I guess this is still a missing feature.
I'm looking for a way to do a cast with JavaScript Language Service code-checker enabled.
TypeScript Version: 2.4.1 / 2.5.0-dev.20170629
References:
#9694
The text was updated successfully, but these errors were encountered: