Has anyone gotten angular2 working with EaselJS?

最后都变了- 提交于 2020-01-07 02:50:19

问题


just getting into angular 2 - having trouble figuring out how to get typeScript to access easeljs class system .. any suggestions/fiddles?


回答1:


It looks like your in luck because there are already type defintions for easeljs in the DefinitelyTyped repo

In order to access the types install typings and then pull the definitions

npm install typings --global

typings install dt~easeljs --global --save

Edit: updated to reflect the fact that tsd has been deprecated and replaced by tsd



来源:https://stackoverflow.com/questions/37688166/has-anyone-gotten-angular2-working-with-easeljs

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