webstorm + typescript "unresolved variable" after adding reference path -
i'm using latest webstorm eap 7 130.958.
i have had buggy behavior since version 6 came out typescript support. problem in below example code applies "unresolved variable" baseclass in extendedclass.ts moment add ...
///<reference path="./interfaces.ts"/>
if remove reference path error goes away. happens time extend class imported node module when reference path exists. how did make way through 6 7?
interfaces.ts
interface ibaseclass { str:string; }
baseclass.ts
///<reference path="./interfaces.ts"/> export class baseclass implements ibaseclass{ constructor(public str:string){ return str+str; } }
extendedclass.ts
///<reference path="./interfaces.ts"/> import baseclassmodule = module("./baseclass"); class extendedclass extends baseclassmodule.baseclass{ constructor(public str:string){ super(str); } } var extendedclass:extendedclass = new extendedclass("yo"); console.log(extendedclass);
this bug. can add ///<reference path="./baseclass.ts"/>
in extendedclass.ts file workaround now. please watch web-7645 notified when fixed.
Comments
Post a Comment