Han Che Han Che - 1 month ago 72x
TypeScript Question

ionic 2 cordova, install cordova plugin typings

Hi I want to install the typings for cordova's InAppBrowser.


typings install dt~cordova --save --global

somehow strips (by default) all other references and doesn't install the plugins.

How can I install them manually? I've tried

typings install dt~cordova/plugins/InAppBrowser --save --global

and is says

Unable to find "cordova/plugins/InAppBrowser" ("dt") in the registry.


You have to install as typings install dt~cordova/plugins/inappbrowser --global Use lowercase as "inappbrowser" instead of "InAppBrowser"