Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backbone typings are missing #9677

Closed
arahansen opened this issue Jun 16, 2016 · 2 comments
Closed

backbone typings are missing #9677

arahansen opened this issue Jun 16, 2016 · 2 comments

Comments

@arahansen
Copy link

Trying to install typings for Backbone.js and I seem to be downloading an invalid typings index.d.ts

Running the following command:
typings install dt~backbone --save --global

Produces the appropriate files:
typings/global/backbone/index.d.ts
typings/global/backbone/typings.json

However, index.d.ts consists of only the generated comment:
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/backbone/backbone.d.ts

Where I would expect this file to contain all the backbone namespace declarations.

That link also leads to a blank index.d.ts source file. So... My guess is that something went haywire in generating typing info? But, not totally familiar with the generation process to be confident in such a conjecture.

@vvakame
Copy link
Member

vvakame commented Jun 19, 2016

cc/ @blakeembrey

@blakeembrey
Copy link
Member

@vvakame I'm open to suggestion on how Typings can handle this, but currently there's no way to indicate dependencies and no imports using DefinitelyTyped, so there's no way to know that the Backbone typings are meant to include the references.

References are always stripped from Typings installation because of their ambiguous nature. There would have been a couple of warnings that this was occurring though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants