Using JavaScript libraries in typescript files
<p>I am trying to use the <a href="https://github.com/orange-games/phaser-input" rel="nofollow noreferrer">Phaser Input JS library</a> in my TypeScript file.</p>

<p>I downloaded all the files to my project:</p>

<p><img src="https://i.stack.imgur.com/VyAul.png" alt="folder"></p>

<p>I have referenced the js files in my HTML page,</p>

<pre><code> &lt;script type="text/javascript" src="phaser-input.js"&gt;&lt;/script&gt;
</code></pre>

<p>and in my app.ts file.</p>

<pre><code>/// &lt;reference path="phaser-input.d.ts" /&gt;
</code></pre>

<p>But when I try to use it in my ts file and I write</p>

<pre><code>var input = game.add.inputField(10, 90);
</code></pre>

<p>I get the error</p>

<blockquote>
  <p>Property 'inputField' does not exit on type 'GameObjectFactory'</p>
</blockquote>

<p>Any suggestion on how to make it work is appreciated.</p>