Created
August 23, 2019 07:21
-
-
Save JavadocMD/ef95084a058d6a89329425ee7a20d06e to your computer and use it in GitHub Desktop.
Extending Window in Typescript.
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
// This file would go in your source path, e.g.: src/window.d.ts | |
declare interface Window { | |
foo: string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And this file needs to be included by your tsconfig