title: How to use swagger-autogen with TypeScript
body: <p>I was wondering if it's possible to use swagger-autogen module in a Typescript project.
  I have try many diffents ways but nothing to do. It always just says &quot;Failed&quot;.
  In a swagger.js file :</p>
  <pre><code>const swaggerAutogen = require(&quot;swagger-autogen&quot;)();
  const options = {...}
  
  const outputFile = './docs/swagger-output.json';
  const endpointsFiles = ['./app.ts'];
  
  swaggerAutogen(outputFile, endpointsFiles, options);
  </code></pre>
  <p>I've tried to put the file in the dist directory but same error...
  Sorry if it's a stupid question or if I've just miss a key point.</p>