feat(env): 添加 JSON 模块声明

- 允许在 TypeScript 中直接导入 .
This commit is contained in:
anghunk
2026-02-11 08:53:31 +08:00
parent 3ce32c9ada
commit 1bdde1e790

View File

@@ -7,3 +7,8 @@ interface ImportMetaEnv {
interface ImportMeta {
readonly env: ImportMetaEnv;
}
declare module "*.json" {
const value: any;
export default value;
}