添加8.9页面
This commit is contained in:
10
src/electron.d.ts
vendored
Normal file
10
src/electron.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user