Files
aida_front/src/shims-vue.d.ts
bighuixiang 5f4e1176f0 refactor: update package.json and improve ESLint configuration
- Removed outdated Vue CLI plugins and added new ESLint rules and plugins for better TypeScript support.
- Enhanced ESLint configuration with parser options and overrides for Vue files.

feat: refactor router configuration for improved readability

- Reformatted router configuration for better structure and clarity.
- Ensured consistent use of async component imports and updated route definitions.

chore: update TypeScript configuration for better compatibility

- Adjusted tsconfig.json to target ES2020 and include necessary libraries.
- Added a new tsconfig.node.json for Node.js specific configurations.

fix: update Vite configuration for proper asset handling

- Modified vite.config.js to specify input for Rollup, ensuring correct asset management.
2025-06-18 21:25:25 +08:00

39 lines
936 B
TypeScript

/// <reference types="vite/client" />
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string;
readonly VITE_APP_BASE_URL: string;
readonly BASE_URL: string;
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
// 第三方库声明
declare module "@ans1998/vue3-color";
declare module "three";
declare module "three/examples/jsm/controls/OrbitControls";
declare module "three/examples/jsm/postprocessing/EffectComposer";
declare module "three/examples/jsm/postprocessing/RenderPass";
declare module "three/examples/jsm/postprocessing/OutlinePass";
// 全局变量声明
declare global {
var ColorThief: any;
var EyeDropper: any;
interface Window {
ColorThief: any;
EyeDropper: any;
google: any;
gc?: () => void;
}
}