问题
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