Importing Createjs for use with TypescriptSee original GitHub issue
The @types for createjs seem to be formatted as a namespace instead of a module. If you import as below:
You can then access for example:
Since the @types (the Typescript typings) are exporting a namespace it then becomes sticky when trying to load the module via a module loader such as SystemJs.
Any comments on how createjs should be imported and loaded would be appreciated.
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top GitHub Comments
Any update on this?
Only way I was able to get createjs to work with typescript using the “import … as …” as noted in most ts documentation was to use the npm package ‘createjs-module’. However, that module package seems to be behind createjs itself so don’t want to use that…
As for this current work around… Not a fan of adding the reference path.