Created
April 23, 2020 17:17
-
-
Save sagarpanda/20fe5e00705b8dee9caa4d407388384f to your computer and use it in GitHub Desktop.
global scope in ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare global { | |
| var foo: string; | |
| } | |
| globalThis.foo = 'Welcome !!!'; | |
| // foo value can be checked on browser console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment