mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
/**
|
|
* @file vite-env.d.ts
|
|
* @description 全局类型定义文件
|
|
* @since Beta v0.5.1
|
|
*/
|
|
|
|
/**
|
|
* @description vue 文件类型声明
|
|
*/
|
|
declare module "*.vue" {
|
|
import type { DefineComponent } from "vue";
|
|
const component: DefineComponent<object, object, any>;
|
|
export default component;
|
|
}
|
|
|
|
/**
|
|
* @description vue-json-viewer
|
|
* @package vue-json-viewer
|
|
* @version 3.0.4
|
|
*/
|
|
declare module "vue-json-viewer" {
|
|
import type { DefineComponent } from "vue";
|
|
const component: DefineComponent<{
|
|
value: any;
|
|
copyable: boolean;
|
|
boxed: boolean;
|
|
}>;
|
|
export default component;
|
|
}
|
|
|
|
/**
|
|
* @description import.meta.env
|
|
* @package vite
|
|
* @description 只写了用到的属性
|
|
*/
|
|
interface ImportMetaEnv {
|
|
TAURI_ARCH: string;
|
|
TAURI_DEBUG: boolean;
|
|
TAURI_FAMILY: string;
|
|
TAURI_KEY_PASSWORD: string;
|
|
TAURI_PLATFORM: string;
|
|
TAURI_PLATFORM_TYPE: string;
|
|
BASE_URL: string;
|
|
MODE: string;
|
|
DEV: boolean;
|
|
PROD: boolean;
|
|
SSR: boolean;
|
|
}
|
|
|
|
declare interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
/**
|
|
* @description 极验验证的请求方法-请求参数
|
|
* @param {TGApp.BBS.Geetest.InitGeetestParams} params
|
|
* @param {(captchaObj: TGApp.BBS.Geetest.GeetestCaptcha) => void} callback
|
|
* @return void
|
|
*/
|
|
declare function initGeetest(
|
|
params: TGApp.Plugins.Mys.Geetest.InitGeetestParams,
|
|
callback: (captchaObj: TGApp.Plugins.Mys.Geetest.GeetestCaptcha) => void,
|
|
): void;
|