This commit is contained in:
lincube
2026-02-13 17:01:37 +08:00
commit ef1ccd439b
88 changed files with 14682 additions and 0 deletions

23
src/preload/index.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
import { ElectronAPI } from '@electron-toolkit/preload'
export interface AppApi {
request: (payload: {
method: string
path: string
headers?: Record<string, string>
body?: unknown
}) => Promise<{ status: number; headers: Record<string, string>; bodyText: string }>
call: <T = unknown>(payload: {
method: string
path: string
headers?: Record<string, string>
body?: unknown
}) => Promise<T>
}
declare global {
interface Window {
electron: ElectronAPI
api: AppApi
}
}