0
定义下面的代码无法解析同一模块中但在不同的文件
场/ base.ts
/// <reference path="../_all.ts" />
module SomeApp.fields {
export interface IField {}
export class Field implements IFields {}
}
的领域/ CharField.ts
/// <reference path="../_all.ts" />
module SomeApp.fields {
import IField = SomeApp.fields.IField;
export interface ICharField extends IField {}
export class Field implements IFields {}
}
在_all接口。 ts:
/// <reference path="fields/base.ts" />
/// <reference path="fields/CharField.ts" />
但这没有牛逼的工作,我从CharField.ts
文件得到这个错误:
Error:(7, 39) TS2305: Module 'SomeApp.fields' has no exported member 'IField'.
那么,什么是错在我的代码?