【问题标题】:How to install chrome-app typings in Typescript 2?如何在 Typescript 2 中安装 chrome-app 类型?
【发布时间】: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。 (appapps)

标签: typescript google-chrome-extension npm google-chrome-app typescript-typings


【解决方案1】:

使用 typings 为 TypeScript 2 安装类型

typings install chrome --save-dev --source dt --global

【讨论】:

    猜你喜欢
    • 2017-02-09
    • 2019-02-04
    • 2021-01-24
    • 1970-01-01
    • 1970-01-01
    • 2018-06-30
    • 2019-07-17
    • 2016-06-05
    • 2016-09-13
    相关资源
    最近更新 更多