Create type definition from JS file
<p>I am trying to create d.ts file from .js file. Many posts such as this are 2 years old <a href="https://stackoverflow.com/questions/12687779/how-do-you-produce-a-d-ts-typings-definition-file-from-an-existing-javascript">How do you produce a .d.ts &quot;typings&quot; definition file from an existing JavaScript library?</a></p>

<p>My questions that after 2 years is there any easier way to extract type into from .js file into .d.ts file?</p>

<p>After running </p>

<pre><code>npm run typings -- install jointjs --save
</code></pre>

<p>the generated .d.ts file got many definitions missing. That's why I would like to get a joint.js file that contains all the stuff as input.</p>