mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 14:22:28 +08:00
- Remove electron/settings/ folder - Remove config-manager.ts and settings-window.ts - Remove Configuration menu from app menu - Remove config-presets IPC handlers - Update README.md - Clean up electron.d.ts Note: This is a breaking change - users will lose existing presets
30 lines
920 B
TypeScript
30 lines
920 B
TypeScript
/**
|
|
* Type declarations for Electron API exposed via preload script
|
|
*/
|
|
|
|
declare global {
|
|
interface Window {
|
|
/** Main window Electron API */
|
|
electronAPI?: {
|
|
/** Current platform (darwin, win32, linux) */
|
|
platform: NodeJS.Platform
|
|
/** Whether running in Electron environment */
|
|
isElectron: boolean
|
|
/** Get application version */
|
|
getVersion: () => Promise<string>
|
|
/** Minimize the window */
|
|
minimize: () => void
|
|
/** Maximize/restore the window */
|
|
maximize: () => void
|
|
/** Close the window */
|
|
close: () => void
|
|
/** Open file dialog and return file path */
|
|
openFile: () => Promise<string | null>
|
|
/** Save data to file via save dialog */
|
|
saveFile: (data: string) => Promise<boolean>
|
|
}
|
|
}
|
|
}
|
|
|
|
export {}
|