title: importing DefinitelyTyped module angular
body: <p>I have the same problem as this post => <a href="https://stackoverflow.com/questions/48737973/finding-the-correct-import-for-a-third-party-definitelytyped-module/48740069?noredirect=1#comment85660658_48740069">Finding the correct import for a third party DefinitelyTyped module</a></p>
  
  <p>I am trying to install <a href="https://github.com/micku7zu/vanilla-tilt.js" rel="nofollow noreferrer">VanillaTilt</a> in to my Angular (TS) project. Using this <a href="https://gist.github.com/kingdaro/26a84d7053f6fa3102ef0ba0c8250edd" rel="nofollow noreferrer">index.d.ts</a>... I saved that <code>d.ts</code> in the same directory as <code>app.component.ts</code> which looks like the following</p>
  
  <pre><code>    import VanillaTilt from 'vanilla-tilt';
      VanillaTilt.init(document.createElement('a'), { perspective: 1000  });
  </code></pre>
  
  <p>but i get the following ts error
  <code>ERROR in src/app/app.component.ts(3,8): error TS1192: Module '"vanilla-tilt"' has no default export.</code></p>
  
  <p>I also tried <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vanilla-tilt" rel="nofollow noreferrer">this version</a> of the <code>d.ts</code> but i kept getting <code>Cannot read property 'init' of undefined</code></p>
  
  <p>Does anyone have any advice on how to use <a href="https://github.com/micku7zu/vanilla-tilt.js" rel="nofollow noreferrer">VanillaTilt</a> in agular5?</p>