2026-04-21 15:49:56 +08:00
|
|
|
NEW_FILE_CODE;
|
2026-04-07 21:22:31 +08:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
|
|
|
|
|
declare module '*.vue' {
|
2026-04-21 15:49:56 +08:00
|
|
|
import type { DefineComponent } from 'vue';
|
|
|
|
|
const component: DefineComponent<{}, {}, any>;
|
|
|
|
|
export default component;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 声明环境变量类型
|
|
|
|
|
interface ImportMetaEnv {
|
2026-04-21 15:49:56 +08:00
|
|
|
readonly VITE_BACKEND_BASE_URL: string;
|
|
|
|
|
readonly START_PORT: number;
|
|
|
|
|
readonly VITE_GEOSERVER_BASE_URL: string;
|
|
|
|
|
readonly MODE: string;
|
|
|
|
|
readonly DEV: boolean;
|
|
|
|
|
readonly PROD: boolean;
|
|
|
|
|
readonly SSR: boolean;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ImportMeta {
|
2026-04-21 15:49:56 +08:00
|
|
|
readonly env: ImportMetaEnv;
|
|
|
|
|
readonly glob;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 声明 CSS 模块类型
|
|
|
|
|
declare module '*.css' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: Record<string, string>;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 声明静态资源类型
|
|
|
|
|
declare module '*.svg' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '*.png' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '*.jpg' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '*.jpeg' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '*.gif' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module '*.webp' {
|
2026-04-21 15:49:56 +08:00
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
2026-04-07 21:22:31 +08:00
|
|
|
}
|