为什么我会收到错误消息:TSDummyProject is not defined
在运行时?
dbentities.d.ts:
declare module TSDummyProject.Models {
export class Part {
ID: number;
PartName: string;
...
}
}
经理.ts:
/// <reference path="dbentities.d.ts"/>
class PartManagerController {
private curPart: TSDummyProject.Models.Part;
...
someFunction(){
// error: TSDummyProject is not defined
this.curPart = new TSDummyProject.Models.Part();
}
}