文件index.ts
(使用 swagger-codegen 生成)
export * from './api/api';
export * from './model/models';
文件 tsd.d.ts
...
/// <reference path="path/to/index.ts" />
typescript 2.2.1.
为什么我仍然需要import myDTO from 'path/to/file/myDTO'
在我的ts
文件中使用 import 语句( ) ?我是否遗漏了一个概念,是否应该声明一个模块?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句