gpt4 book ai didi

typescript - ngCordova 的类型似乎丢失了

转载 作者:搜寻专家 更新时间:2023-10-30 21:24:40 24 4
gpt4 key购买 nike

我正在尝试获取 ngCordova 类型,但 tsd 和类型都失败了:

如果我执行:

tsd install ng-cordova --save

它输出;

zero results

如果我执行:

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

输出:

typings ERR! message Unable to find "ng-cordova" ("dt") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry typings ERR! caused by https://api.typings.org/entries/dt/ng-cordova/versions/latest responded with 404, expected it to equal 200

我也试过搜索,但也没看

tsd query ng-cordova

输出;

zero results

typings search --name ng-cordova

输出:

No results found for search

ngCordova 类型发生了什么?我知道他们在那里:https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/ng-cordova

如何获取 ngCordova 的类型?

最佳答案

尝试使用下面的方法搜索单个 ng-cordova 服务的所有类型:

typings search ng-cordova

这将返回结果

Viewing 17 of 17 NAME SOURCE HOMEPAGE DESCRIPTION VERSIONS UPDATED
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

关于typescript - ngCordova 的类型似乎丢失了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37529131/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com