diff --git a/docs/guide/env-and-mode.md b/docs/guide/env-and-mode.md index 5a375746da9ea7..e7c7f3bf704087 100644 --- a/docs/guide/env-and-mode.md +++ b/docs/guide/env-and-mode.md @@ -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] /// -// 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 {