Skip to content

Not all d.ts files in DefinitelyTyped are available through @types in NPM #9832

@marcote

Description

@marcote

TypeScript Version: 2.0 beta
Code

// A *self-contained* demonstration of the problem follows...

npm install --save  @types/elasticsearch

Expected behavior:
successfully install elasticsearch.d.ts

Actual behavior:
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/Cellar/node/6.2.2/bin/node" "/usr/local/bin/npm" "install" "--save" "@types/elasticsearch"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code E404

npm ERR! 404 Not found : @types/elasticsearch
npm ERR! 404
npm ERR! 404 '@types/elasticsearch' is not in the npm registry.

more info
https://www.npmjs.com/package/@types/elasticsearch is not present in npm, but yes here:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/elasticsearch/elasticsearch.d.ts

I was expecting to be in sync.

Thanks!

Metadata

Metadata

Assignees

Labels

@typesRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedBugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions