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