Source maps and debugger aside I sometimes want to add something to a window object.

window.someProperty = 123

This fails.

But this works

(window as any).someProperty = 123;