Cross-project references between two projects

后端 未结 8 1244
故里飘歌
故里飘歌 2020-12-01 07:55

Is it possible to make a reference between two TypeScript projects? Assume we have the following project structure:

8条回答
  •  既然无缘
    2020-12-01 08:25

    If you are compiling with the --out parameter you can simply reference Module1.ts from Module2.ts using /// To learn more about code organization patterns in TypeScript see http://www.youtube.com/watch?v=KDrWLMUY0R0&hd=1

    What visual studio language services sees available (which is everything) is different from what you compile and actually have available at runtime.

提交回复
热议问题