Han Che Han Che - 3 months ago 210
TypeScript Question

ionic 2 cordova, install cordova plugin typings

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

using


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.

Answer

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