我们正在使用Typescript和Intellij Webstorm IDE。使用ES6模块语法浏览Webstorm中的Typescript引用
的情况,我们使用ES6进口语法和tsc
编译器1.5.3(设置为自定义的编译器Webstorm也标志--module commonjs
)
问题是,它是IMPOSIBLE通过点击(导航到)从模块的方法(文件)
// app.ts
import * as myModule from 'myModule';
myModule.myFunction();
// myModule.ts
export function myFunction() {
// implementation
}
当我app.ts
我希望导航到myModule.ts
文件点击.myFunction()
,但这种情况不会发生?
编辑:
我们出口的功能是作为第一个例子有点不同的方式:
export: {
myFunction1,
myFunction2,
// ...
};
适合我使用WebStorm 10.0.4。你使用什么版本? – lena
现在不在工作,将在星期一进行检查 – tomastrajan
Webstrom 10.0.4 – tomastrajan