Ziya/types/electron.d.ts
rizary 6efcf43691
feat: complete ESLint configuration overhaul and theme system improvements
- Migrate from legacy .eslintrc.json to modern flat config system
- Remove conflicting ESLint configuration files
- Fix auto-generation of eslint.config.mjs by Nuxt
- Update ESLint rules to use single quotes and proper formatting
- Add comprehensive theme switching system with 24 palettes
- Implement proper daisyUI theme integration
- Add theme store with persistence and dark/light mode support
- Create ThemeSwitcher component with enhanced UI
- Fix package.json scripts to work with new ESLint flat config
- Update VS Code settings for proper ESLint integration
- Add changelogen scripts for proper changelog management

BREAKING CHANGE: ESLint configuration migrated to flat config system
2025-06-22 00:53:24 +07:00

30 lines
806 B
TypeScript

import type { handlers } from './../electron/preload';
type ElectronAPI = typeof handlers;
export interface IElectronAPI {
minimizeWindow: () => Promise<void>;
maximizeWindow: () => Promise<void>;
closeWindow: () => Promise<void>;
isMaximized: () => Promise<boolean>;
onMaximizeChange: (callback: (event: any, maximized: boolean) => void) => void;
removeMaximizeListener: (callback: (event: any, maximized: boolean) => void) => void;
openExternal: (url: string) => Promise<void>;
onRedisData: (callback: (data: RedisMessage) => void) => void;
removeRedisDataListener: () => void;
}
export interface RedisMessage {
channel: string;
data: any;
timestamp: number;
}
declare global {
interface Window {
electron: ElectronAPI;
electronAPI: IElectronAPI;
}
}
export { };