From d1845117cf795df3cebcb1b0c9e10e41536dfdcf Mon Sep 17 00:00:00 2001 From: Yunics Highfield <101333147+yunics-highfield@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:56:23 +0900 Subject: [PATCH] Update docs/guide/env-and-mode.md Co-authored-by: Bjorn Lu --- docs/guide/env-and-mode.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {