A better way would be to do like Arnavion said, for really global libraries you should create a .d.ts file and put this line in it:<p><pre><code>    declare var somelib: any;
</code></pre>
Done. Now the compiler and everything else will know that there&#x27;s a global variable called `somelib` that does not have a specific type, and no matter how you use that variable, it&#x27;s ok, you know what you&#x27;re doing.