News for hackers. Stuff that matters.
Re:Announcing TypeScript 1.8 Beta by nothrabannosir on Friday January 29, 2016 @03:19AM (#10994135)
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.

There are no comments on this comment yet.