From 38fc007ae6ba498055471ab5cd2a082d0c42928e Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 31 Aug 2023 21:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=20import.meta.env=20=E6=97=B6=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=20ts=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/env.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/env.d.ts diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..0fa2a6f --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1,10 @@ +/// + +interface ImportMetaEnv { + readonly VITE_APP_TITLE: string + // 更多环境变量... +} + +interface ImportMeta { + readonly env: ImportMetaEnv +}