How to Extend the Window Object in TypeScript - I Like Kill Nerds

added by JavaScript Kicks
9/29/2022 2:49:50 PM

662 Views

In many cases when you're working with TypeScript, there are type definitions available for almost every package out there. However, in some circumstances, you might find yourself working with a third party that adds a property to the window object. Think a script tag like how Google Analytics works by adding in the ga property [...]


0 comments