Skip to content

Instantly share code, notes, and snippets.

@kenyipp
Created October 30, 2022 23:58
Show Gist options
  • Save kenyipp/8511e2e20d02af86fa455ae07cd8841c to your computer and use it in GitHub Desktop.
Save kenyipp/8511e2e20d02af86fa455ae07cd8841c to your computer and use it in GitHub Desktop.
Type annotation on process.env
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