top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How Do You Explicitly Set A New Property On `Window` In TypeScript?

+1 vote
37 views
How Do You Explicitly Set A New Property On `Window` In TypeScript?
posted Dec 1, 2016 by Jdk

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

Using window keyword we can achieve. See below

   declare global {
        interface Window { MyNamespace: any; }
    }

    window.MyNamespace = window.MyNamespace || {};
answer Nov 20, 2018 by Aarati Mahajan
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...