Created
October 30, 2022 23:58
-
-
Save kenyipp/8511e2e20d02af86fa455ae07cd8841c to your computer and use it in GitHub Desktop.
Type annotation on process.env
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 { | |
namespace NodeJS { | |
interface ProcessEnv { | |
YOU_ENV: string | |
} | |
} | |
} | |
// If this file has no import/export statements (i.e. is a script) | |
// convert it into a module by adding an empty export statement. | |
export {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment