ionic 2 cordova,安装 cordova 插件类型
ionic 2 cordova, install cordova plugin typings
您好,我想为 cordova 的 InAppBrowser 安装打字。
使用
typings install dt~cordova --save --global
以某种方式删除(默认情况下)所有其他引用并且不安装插件。
如何手动安装它们?我试过了
typings install dt~cordova/plugins/InAppBrowser --save --global
并且是说
Unable to find "cordova/plugins/InAppBrowser" ("dt") in the registry.
您必须安装为 typings install dt~cordova/plugins/inappbrowser --global
使用小写 "inappbrowser" 而不是 "InAppBrowser"
使用小写:
typings install dt~cordova/plugins/inappbrowser --save --global
通过 TypeScript 2.0,您可以使用
npm install @types/cordova-plugins-inappbrowser --save-dev
参见:
https://github.com/DefinitelyTyped/DefinitelyTyped#definitelytyped-
在 typescript Ionic 2.2.0 中使用 cordova -----
npm i -g typings // update typings, it might needed
typings install dt~cordova --global --save
然后在typings/index.d.ts
中取消注释
您好,我想为 cordova 的 InAppBrowser 安装打字。
使用
typings install dt~cordova --save --global
以某种方式删除(默认情况下)所有其他引用并且不安装插件。
如何手动安装它们?我试过了
typings install dt~cordova/plugins/InAppBrowser --save --global
并且是说
Unable to find "cordova/plugins/InAppBrowser" ("dt") in the registry.
您必须安装为 typings install dt~cordova/plugins/inappbrowser --global
使用小写 "inappbrowser" 而不是 "InAppBrowser"
使用小写:
typings install dt~cordova/plugins/inappbrowser --save --global
通过 TypeScript 2.0,您可以使用
npm install @types/cordova-plugins-inappbrowser --save-dev
参见:
https://github.com/DefinitelyTyped/DefinitelyTyped#definitelytyped-
在 typescript Ionic 2.2.0 中使用 cordova -----
npm i -g typings // update typings, it might needed
typings install dt~cordova --global --save
然后在typings/index.d.ts
中取消注释