Skip to content

Commit

Permalink
fix: Incompatible type in ImportMetaEnv interface (vitejs#5578)
Browse files Browse the repository at this point in the history
  • Loading branch information
imShara authored Nov 7, 2021
1 parent bd8b66d commit b803b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/env-and-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To achieve, you can create an `env.d.ts` in `src` directory, then augment `Impor
```typescript
/// <reference types="vite/client" />

interface ImportMetaEnv extends Readonly<Record<string, string>> {
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string
// more env variables...
}
Expand Down

0 comments on commit b803b24

Please sign in to comment.