3 ms·
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: declare var somelib: an
by DCoder 11y ago
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:
declare var somelib: any;
Done. Now the compiler and everything else will know that there's a global variable called `somelib` that does not have a specific type, and no matter how you use that variable, it's ok, you know what you're doing.