///
declare module '*.vue' {
import type { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
}
// 扩展 uni 命名空间的类型定义
declare namespace UniApp {
interface PageInstance {
$page?: {
fullPath: string;
options: Record;
};
}
}
// 全局类型定义
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string;
readonly VITE_APP_BASE_URL: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}