ngCordova的输入似乎缺失

时间:2016-05-30 15:21:01

标签: typescript ngcordova tsd typescript-typings

我正试图获得ngCordova打字,但tsd和打字都失败了:

如果我执行:

tsd install ng-cordova --save

输出;

  

零结果

如果我执行:

typings install dt~ng-cordova --save --global

输出:

  

打字ERR!消息无法在中找到“ng-cordova”(“dt”)   注册表中。您想尝试搜索其他来源吗?另外,如果你   想要贡献这些类型,请帮助我们:   https://github.com/typings/registry类型ERR!引起的   https://api.typings.org/entries/dt/ng-cordova/versions/latest   回复404,预计它等于200

我也尝试过搜索,但是看起来不是

tsd query ng-cordova

输出;

  

零结果

typings search --name ng-cordova

输出:

  

搜索结果未找到

ngCordova打字怎么了?我知道他们在那里:https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/ng-cordova

如何获得ngCordova的打字?

1 个答案:

答案 0 :(得分:4)

尝试使用以下内容搜索各个ng-cordova服务的所有类型:

typings search ng-cordova

这将返回结果

  

查看17的17   名称来源首页描述版本更新
  ng-cordova / actionsheet dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / appavailability dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / app-version dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / badge dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / camera dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / datepicker dt https://github.com/VitaliiBlagodir/cordova-plugin-datepicker
  ng-cordova / device dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / devicemotion dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / deviceorientation dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / dialogs dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / emailcomposer dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / file dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / filetransfer dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / geolocation dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / network dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / toast dt https://github.com/driftyco/ng-cordova 1 2016-03-16T17:18:10.000Z   ng-cordova / tsd dt https://github.com/driftyco/ng-cordova 1 2015-12-02T00:06:10.000Z

因此,基于以上结果,您可以搜索特定的输入:

typings search ng-cordova/toast

找到输入后,可以按照以下方式安装:

typings install ng-cordova/toast

注意:以上所有内容均适用于类型为0.8.1