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

冷暖自知 提交于 2019-12-24 06:47:56

问题


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?

来源:https://stackoverflow.com/questions/39297746/typescript-definitions-for-various-libraries-and-different-versions-typings-d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!