DefinitelyTyped / tsd

[DEPRECATED] TypeScript Definition manager for DefinitelyTyped
Apache License 2.0
1.12k stars 135 forks source link

tsd query, returns zero results #300

Closed abhinavkant closed 7 years ago

abhinavkant commented 7 years ago

I have tried executing tsd query node --action install --save or tsd query jquery or tsd query * it always returns "zero results"

gregonmac commented 7 years ago

Same behaviours

AndrewKiri commented 7 years ago

I confirm the same behavior. image

AndrewKiri commented 7 years ago

The definitely typed repo has so many projects for which types are written, big part of them are truncated when the github repo is opened. Can it also be a reason why the terminal command returns zero results?

itsromiljain commented 7 years ago

Same behavior for me also. $tsd install react --save always returning Zero Results. Is any one able to resolve it ?

gregonmac commented 7 years ago

I use npm install @types (https://www.npmjs.com/~types) in place of tsd, it's not a solution for the bug but it's a solution for the problem.

Bartvds commented 7 years ago

The structure in the DefinitelyTyped repo changed to accommodate @types. This means TSD can't read the index and parse for installables anymore (it depended on the file names but those are all index now). It could be a bit of a hassle to make it work correctly (semantics of names etc) with the new repo structure.

It still reinstalls fine because tsd.json is linked against DT commit hashes.

Since everything is moving to @types anyway it is not a big priority to extend TSD's life, especially since there are various alternatives.

If you are serious about TypeScript you should migrate your project to npm @types soonest because that is the official Microsoft supported way forward.

nycdotnet commented 7 years ago

A wild @Bartvds appears!!

johnnyreilly commented 7 years ago

Ha!

abhinavkant commented 7 years ago

based on the update on TSD repo :

"DEPRECATED: TSD is deprecated, please use Typings and see this issue for more information."

kaisrec commented 7 years ago

tsd is deprecated The following steps helped me install the type definitions. In the application folder Delete typings folder (if it exists) Run the following commands

npm init npm install --save @types/angular