2023-07-24 10:05:07 +08:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
|
|
|
|
|
declare module '*.vue' {
|
|
|
|
|
import { DefineComponent } from 'vue';
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
|
|
|
const component: DefineComponent<{}, {}, any>;
|
|
|
|
|
export default component;
|
|
|
|
|
}
|
2023-10-26 14:10:48 +08:00
|
|
|
|
2024-05-22 12:50:30 +08:00
|
|
|
// window
|
|
|
|
|
interface CustomWindow extends Window {
|
|
|
|
|
deferredPrompt?: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare const window: CustomWindow;
|
|
|
|
|
|
|
|
|
|
// .env
|
2023-07-24 10:05:07 +08:00
|
|
|
interface ImportMetaEnv {
|
|
|
|
|
readonly VITE_API_BASE_URL: string;
|
2024-01-04 17:10:07 +08:00
|
|
|
readonly VITE_WS_BASE_URL: string;
|
2023-11-30 22:21:25 +08:00
|
|
|
readonly VITE_APP_VERSION: string;
|
2024-06-11 12:50:42 +08:00
|
|
|
readonly VITE_APP_RELEASE: string;
|
2024-05-24 10:47:28 +08:00
|
|
|
readonly VITE_DEMO_MODE: string;
|
2023-07-24 10:05:07 +08:00
|
|
|
}
|
2023-10-26 14:10:48 +08:00
|
|
|
|
|
|
|
|
// editor
|
|
|
|
|
declare module 'monaco-editor';
|
|
|
|
|
declare module 'monaco-editor/esm/vs/editor/editor.worker?worker'
|
|
|
|
|
declare module 'monaco-editor/esm/vs/language/json/json.worker?worker'
|
|
|
|
|
declare module 'monaco-editor/esm/vs/basic-languages/yaml/yaml.js';
|
2024-01-10 01:05:15 +08:00
|
|
|
declare module 'monaco-editor/esm/vs/basic-languages/shell/shell.js';
|