TypeScript typings in npm @types org packages

后端 未结 3 953
醉酒成梦
醉酒成梦 2020-11-29 17:48

I\'ve noticed there\'s an npm organization @types, which contains typing packages, but can\'t find any documentation on it. How are these meant to be used?

Is it me

3条回答
  •  悲&欢浪女
    2020-11-29 18:44

    This is going to be a feature that is rolled out in Typescript 2.0. This provides type support for UMD Modules/Libraries and their respective definitions.

    See (Built-in support for UMD module definitions) to get a better understanding of the issues currently with ambient typings.

提交回复
热议问题