Files
LanMountainDesktop/src/preload/index.d.ts
lincube ef1ccd439b 0.0.1
2026-02-13 17:01:37 +08:00

24 lines
518 B
TypeScript

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
}
}