TypeScript Typings 私有注册表

TypeScript Typings private registry

我在 VPN 环境中的 TypeScript 中有一些库,我希望它们能从 typings 工具中受益,这样我就可以将为这些库定义的类型转换为新的类型。

我想到了私有类型注册表的想法,类似于 artifactory 提供的私有 NPM 存储库,这可以用类似的方式完成吗?

有没有一种方法可以像 Angular1 或 lodash 在 DefinitelyTyped 存储库中那样使用它们的类型来发布我的 TypeScript 库?

虽然它不是存储库,但您可以通过指定位置来安装 .d.ts 文件,例如:typings i --save jsonstream=https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/JSONStream/JSONStream.d.ts

(当然在你的情况下 URL 将是你的 vpn 内部的东西)