78 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-04-02 01:01:56 +08:00
declare module '*.vue' {
2023-04-03 00:05:09 +08:00
import { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
2023-04-02 01:01:56 +08:00
}
declare module '*.avif' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.bmp' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.gif' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.jpg' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.jpeg' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.png' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.webp' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.svg' {
2023-04-03 00:05:09 +08:00
const src: string;
export default src;
2023-04-02 01:01:56 +08:00
}
declare module '*.module.css' {
2023-04-03 00:05:09 +08:00
const classes: { readonly [key: string]: string };
export default classes;
2023-04-02 01:01:56 +08:00
}
declare module '*.module.scss' {
2023-04-03 00:05:09 +08:00
const classes: { readonly [key: string]: string };
export default classes;
2023-04-02 01:01:56 +08:00
}
declare module '*.module.sass' {
2023-04-03 00:05:09 +08:00
const classes: { readonly [key: string]: string };
export default classes;
2023-04-02 01:01:56 +08:00
}
// 环境变量
interface ImportMetaEnv {
2023-04-03 00:05:09 +08:00
VITE_APP_TITLE: string;
VITE_APP_PORT: number;
VITE_APP_BASE_API: string;
VITE_APP_BASE_URL: string;
VITE_APP_CONTEXT_PATH: string;
VITE_APP_MONITRO_ADMIN: string;
VITE_APP_POWERJOB_ADMIN: string;
2023-04-03 00:05:09 +08:00
VITE_APP_ENV: string;
VITE_APP_RSA_PUBLIC_KEY: string;
VITE_APP_CLIENT_ID: string;
2023-11-03 22:40:18 +08:00
VITE_APP_WEBSOCKET: boolean;
2023-04-02 01:01:56 +08:00
}
interface ImportMeta {
2023-04-03 00:05:09 +08:00
readonly env: ImportMetaEnv;
// readonly glob: any;
2023-04-02 01:01:56 +08:00
}