【发布时间】:2017-02-15 15:39:56
【问题描述】:
我想在我们的 Typescript 项目中删除 typings。
使用 Typescript 2,我能够删除几乎所有类型的依赖项,除了 chrome-app 的依赖项:
https://github.com/uProxy/uproxy/compare/master...fortuna:master
这个命令:
npm install @types/chrome-app --save-dev
没有找到这个包,虽然它在 DefinedTyped 中可用: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/chrome
怎么了?如何使用 npm 而不是打字来安装 chrome-app 定义?
更新(2016 年 12 月 17 日):@types/chrome-app 软件包中存在一个已修复的错误。上面的npm 命令现在可以正常工作了。
【问题讨论】:
-
现在是
npm install @types/chrome-apps。 (app→apps)
标签: typescript google-chrome-extension npm google-chrome-app typescript-typings