Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

auto complete of process.env in typescript

//install @types.node
//create environment.d.ts in root directory
declare global{
  namespace NodeJs{
  interface ProcessEnv{
    PORT:string
  }
}
}

export {}
  
 
PREVIOUS NEXT
Tagged: #auto #complete #typescript
ADD COMMENT
Topic
Name
6+8 =