Files
yuanhe-checkin-electron/src/electron.d.ts
2025-11-20 17:06:56 +08:00

11 lines
280 B
TypeScript

// Electron API 类型声明
interface ElectronAPI {
fetchPdf: (pdfUrl: string) => Promise<{ success: boolean; data?: string; error?: string }>;
printPdf: (pdfUrl: string) => Promise<{ success: boolean; error?: string }>;
}
interface Window {
electronAPI?: ElectronAPI;
}