优化前端
This commit is contained in:
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
}
|
||||
|
||||
// Wails Go 绑定类型声明
|
||||
interface Window {
|
||||
go: {
|
||||
main: {
|
||||
App: {
|
||||
LoadProducts: (refresh: boolean) => Promise<any>
|
||||
GetAccounts: () => Promise<any[]>
|
||||
ReloadAccounts: () => Promise<any>
|
||||
StartSeckill: (accountProducts: Record<string, string>) => Promise<any>
|
||||
SetSchedule: (req: any) => Promise<any>
|
||||
CancelSchedule: () => Promise<any>
|
||||
GetResults: () => Promise<Record<string, string>>
|
||||
GetLogs: (since: number) => Promise<any>
|
||||
GetTime: () => Promise<any>
|
||||
ClearResults: () => Promise<any>
|
||||
QueryScore: (accountName: string) => Promise<any>
|
||||
GetVersion: () => Promise<string>
|
||||
GetSettings: () => Promise<any>
|
||||
SaveSettings: (cfg: any) => Promise<any>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user