title: In Angular 5, how can I import NPM modules with no @types
body: <p>I'm trying Angular 5, starting a project from angular-cli. In this project, I would like to use a NPM module : J2M (<a href="https://github.com/kylefarris/J2M" rel="noreferrer">https://github.com/kylefarris/J2M</a>), so I looked online and saw these two commands :</p>
  
  <pre><code>npm install j2m --save
  npm install @types/j2m --save-dev
  </code></pre>
  
  <p>Unfortunately, @types/j2m doesn't exist at all. 
  So I tried to find a way to define my own typings but didn't manage to succeed...</p>
  
  <p>I'm using this code :</p>
  
  <pre><code>import * as J2M from "j2m";
  ...
  console.log(J2M.toM(value));
  </code></pre>
  
  <p>But either "j2m" is not recognized, or "toM" is not a function, based on the samples I found online...</p>
  
  <p>So, what's the proper way to import this module?</p>
  
  <p>Thanks,</p>