【发布时间】:2016-07-14 23:23:02
【问题描述】:
我有一个这样的打字稿类;
module my.services {
export class MyService {
...
}
}
还有一个这样的;
module com.my.component {
import MyService = my.services.MyService;
export class MyComponent {
...
}
}
但在第二堂课中,我收到一个 Typescript 错误提示
Module 'com.my' has no exported member 'services'
在这种情况下引用 MyService 的正确方法是什么?
【问题讨论】: