TypeScript definitions for various libraries and different versions - Typings, DefinitelyTyped
Asked Answered
S

0

1

Both DefinitelyTyped and typings allow us to use existing JS libraries along with their TypeScript bindings (definitions, .d.ts) provided by the community. My question is - does any of these platform provide a possibility to use a binding for a certain version of a certain library?

For example, I can see in DefinitelyTyped/jQuery, that it supports only this:

// Type definitions for jQuery 1.10.x / 2.0.x

and this is the only file. And jQuery seems to be pretty popular library. So I expect that support for other libraries would be even worse.

Anyway, are the TS bindings still so immature that they don't allow to specify target version of a given library? Is this feature planned to be added?

Stotts answered 2/9, 2016 at 17:19 Comment(1)
The typings page on npm shows how to get specific versions (within the Quick Start section, find the comment # Search and install by version. ).Mauro

© 2022 - 2024 — McMap. All rights reserved.