api_tool/types.d.ts
2025-06-22 15:53:05 +02:00

14 lines
305 B
TypeScript

type EventPayloadMapping = {};
/**
* Extends the Main "Window" Interface
*/
interface Window {
electron: {
ping: () => Promise<string>;
};
}
type UnsubscribeFunction = () => void;
type SubscribeFunction<Event extends keyof EventPayloadMapping> = (payload: EventPayloadMapping[Event]) => void;