Skip to content

Commit

Permalink
Update docs/guide/env-and-mode.md
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
yunics-highfield and bluwy authored Jan 7, 2025
1 parent 456ad40 commit d184511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/guide/env-and-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ To achieve this, you can create an `vite-env.d.ts` in `src` directory, then augm
```typescript [vite-env.d.ts]
/// <reference types="vite/client" />

// By adding this line, you can make the type of ImportMetaEnv strict.
// By adding this line, you can make the type of ImportMetaEnv strict
// to disallow unknown keys.
type ViteStrictImportMetaEnv = true

interface ImportMetaEnv {
Expand Down

0 comments on commit d184511

Please sign in to comment.