1

TSDummyProject is not defined実行時にエラーが発生するのはなぜですか?

dbentities.d.ts:

declare module TSDummyProject.Models {
    export class Part {
        ID: number;
        PartName: string; 
        ...
    }
}

manager.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(); 
    }
}
4

1 に答える 1