简体   繁体   English

打字项目和使用绝对类型存储库

[英]Typings project and use of Definitely Typed Repository

如何在Angular 2项目中从绝对类型的存储库中添加类型,以及如何将这些文件(即*d.ts )映射到相应的JavaScript库?

The easiest is just to use typings . 最简单的就是使用打字

On your second question: if you setup typings correctly, the compiler will find the proper module automatically, no need for any triple-dash references anymore 🙂. 关于第二个问题:如果正确设置了类型,编译器将自动找到合适的模块,不再需要任何三连字符引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM