I found this article its quite interesting, but it does not help me when I try to extend a global variable like window
.
Test.ts
window.test = {}; //ERROR: Property 'test' does not exist on type 'Window'.
(function (test)
{
//do stuff
} (window.test)); //Build: Property 'test' does not exist on type 'Window'
Error message:
ERROR: Property 'test' does not exist on type 'Window'.
How can I solve this ?