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