Has anyone gotten angular2 working with EaselJS?

2019-09-14 21:20发布

问题:

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