【发布时间】:2016-03-06 21:26:41
【问题描述】:
我创建了一个 npm 包 (https://github.com/d6u/observe-object-path)。它是用打字稿写的。它有一个构建步骤将其编译为 ES5,因此任何 JavaScript 环境都可以使用它 (https://github.com/d6u/observe-object-path/blob/master/package.json#L39-L41)。
由于模块已经用 Typescript 编写。是否可以为我的包自动生成一个
.d.ts文件,以便使用 Typescript 的人可以在最少或没有配置的情况下使用它?-
如果无法自动生成,将
李>.d.ts文件放在ts目录下的最佳位置是什么(这显然是Rx 4 正在做的https://github.com/Reactive-Extensions/RxJS/tree/master/ts)?
【问题讨论】:
标签: javascript typescript npm