title: Typescript Types for import.meta.env
body: <p>I am now using a framework (vite) that injects environment variables into <code>import.meta.env</code>.</p>
  <p>I was previously able to create a file <code>env.d.ts</code> to provide types to <code>process.env</code></p>
  <pre><code>declare global {
    namespace NodeJS {
      interface ProcessEnv {
        GITHUB_AUTH_TOKEN: string;
        NODE_ENV: 'development' | 'production';
        PORT?: string;
        PWD: string;
      }
    }
  }
  </code></pre>
  <p>I've tried the following but does not work.</p>
  <pre><code>declare global {
    namespace NodeJS {
      interface ImportMeta {
        GITHUB_AUTH_TOKEN: string;
        NODE_ENV: 'development' | 'production';
        PORT?: string;
        PWD: string;
      }
    }
  }
  </code></pre>