Define Type for Env

September 19, 2023

Typescript

Define Type for Env

Thuta Sann

Thuta Sann

type def for variables from .env file


Share This Snippet To :

Define Types for .env files

declare namespace NodeJS { export interface ProcessEnv { DATABASE_URL: string; JWET_SECRET: string; JWT_REFRESH_TOKEN: string; } }

Cookie

I baked some cookies that you have to accept, if you want to enjoy my portfolio.
In order to gather information and make improvements, I should use some third-party cookies too, Can I?