From 1bdde1e790a9a164f5486d3045e5c6e2ebddbb17 Mon Sep 17 00:00:00 2001 From: anghunk Date: Wed, 11 Feb 2026 08:53:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(env):=20=E6=B7=BB=E5=8A=A0=20JSON=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 允许在 TypeScript 中直接导入 . --- cwd-admin/src/env.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cwd-admin/src/env.d.ts b/cwd-admin/src/env.d.ts index 284e3cc..4a1cc77 100644 --- a/cwd-admin/src/env.d.ts +++ b/cwd-admin/src/env.d.ts @@ -7,3 +7,8 @@ interface ImportMetaEnv { interface ImportMeta { readonly env: ImportMetaEnv; } + +declare module "*.json" { + const value: any; + export default value; +}