【发布时间】:2015-12-27 01:07:01
【问题描述】:
无法引用和使用来自另一个模块的导出方法。收到一条错误消息,指出“SecondModule 中没有导出的成员”。
module FirstModule{
export class someClass{
constructor(method: SecondModule.exMethod) //Getting Error here: 'There is no exported member in SecondModule'
{}
}
}
module SecondModule{
export function exMethod(){
return function(input){
//do something
return result;
}
}
}
【问题讨论】:
标签: angularjs visual-studio typescript