-
-
Save AnthonyLzq/bb96f450b423c6b9e5e0a5d4cf6f6c58 to your computer and use it in GitHub Desktop.
Global variable declaration in Node.js >= 16
This file contains 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 globalString: string | |
interface GlobalInterface { | |
value: unknown | |
} | |
type GlobalType = { | |
value: unknown | |
} | |
} | |
export {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment