No problem. As others mentioned; declare var is the way to go (my TS is getting rusty, apparently :) ).
Editors have no problem with it. They will simply see it as an "any" var. Completely compatible.
I wrote quite a bit of TS and this was how I used most obscure libraries. I can't be arsed to keep those stupid .d.ts files up to date and I trust the API docs. It's my own code I wanted to vet. Works like a charm.
Judicious use of declare var any, and ignoring compiler errors, is what really makes TS reality-compatible.
Editors have no problem with it. They will simply see it as an "any" var. Completely compatible.
I wrote quite a bit of TS and this was how I used most obscure libraries. I can't be arsed to keep those stupid .d.ts files up to date and I trust the API docs. It's my own code I wanted to vet. Works like a charm.
Judicious use of declare var any, and ignoring compiler errors, is what really makes TS reality-compatible.