title: Using createJS in typescript?
body: <p>I am attempting to incorporate createJS into a typescript project (a powerbi visual) that I am building.</p>
  
  <p>I have done the following:</p>
  
  <p>1) Installed createJS and typings file using:</p>
  
  <p><code>npm install createjs --save</code> and <code>npm install --save @types/createjs</code> </p>
  
  <p>2) Added this line to the the <code>externalJS</code> array in <code>pbiviz.json</code> : <code>"node_modules/createjs/builds/1.0.0/createjs.min.js"</code></p>
  
  <p>3) Added the path to the typings file to the <code>files</code> array in my <code>tsconfig.ts</code> file:
  <code>"node_modules/@types/createjs/index.d.ts"</code>.</p>
  
  <p>Something didn't go right, I'm seeing the following error in my console: 
  <a href="https://i.stack.imgur.com/LY5Xe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LY5Xe.png" alt="Error Trace"></a></p>
  
  <p>This was without actually calling the namespace in my code, if  I attempt to use the namespace then it simply breaks my code without any warnings. My IDE's auto-suggest offers <code>createjs</code>implying to me that it was imported properly but still something isn't right.</p>
  
  <p>I think its related to this <a href="https://github.com/CreateJS/PreloadJS/issues/85" rel="nofollow noreferrer">thread</a> but I don't understand how to implement the solution it typescript. Can anyone help?</p>
  
  <p>My project structure:
  <a href="https://i.stack.imgur.com/qOg2r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qOg2r.png" alt="structure"></a></p>