> For the complete documentation index, see [llms.txt](https://kidkung.gitbook.io/node-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kidkung.gitbook.io/node-js/note/.env-declare-type.md).

# .env declare type

```typescript
declare global {
  namespace NodeJS {
    interface ProcessEnv {
      API_URL: string;
      API_THAI_ADDRESS: 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 {};
```
