astrbot_plugin_imagestudio/frontend/env.d.ts

19 行
604 B
TypeScript

/// <reference types="vite/client" />
declare module "*.vue" {
import type { DefineComponent } from "vue"
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>
export default component
}
interface Window {
AstrBotPluginPage?: {
ready?(): Promise<void>
apiGet?<T>(path: string, params?: Record<string, unknown>): Promise<T>
apiPost?<T>(path: string, body?: unknown): Promise<T>
apiPut?<T>(path: string, body?: unknown): Promise<T>
apiPatch?<T>(path: string, body?: unknown): Promise<T>
apiDelete?<T>(path: string): Promise<T>
}
}