feat(env): 添加 JSON 模块声明
- 允许在 TypeScript 中直接导入 .
This commit is contained in:
5
cwd-admin/src/env.d.ts
vendored
5
cwd-admin/src/env.d.ts
vendored
@@ -7,3 +7,8 @@ interface ImportMetaEnv {
|
|||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
readonly env: ImportMetaEnv;
|
readonly env: ImportMetaEnv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module "*.json" {
|
||||||
|
const value: any;
|
||||||
|
export default value;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user