1

3 つの個別のフォルダーに 3 つのモジュールがあり、それぞれ (テスト用) に 1 つのファイルがあります。

  • components/pagedList.ts
  • ディレクティブ/testDirective.ts
  • entity1/entity1.ts

どの約。こんな風に見える

// pagedList.ts
module App.Components {
    export interface IPagedList<T> {
        ...
    }
}

// testDirective.ts
module App.Directives {
    export class TestDirective {
        ...
    }
}

// entity1.ts
module App.Entity1 {
    export interface IEntity1 {
        ...
    }
}

それらを依存関係として参照しようとすると、 module を除くすべてで機能しますApp.ComponentsIntellisense (Visual Studio) と私のtypescriptの単調なタスクの両方がunable to find symbol 'App.Components'. これは予約済みのキーワードか何かですか? 編集:名前の変更と再配置を試みましたが、まだ機能していません。

var dependencies = [
    "ui.router", 
    "ui.bootstrap",
    Components, // Unable to find symbol 'Components'
    Directives,
    Entity1,
];
4

1 に答える 1