14 lines
305 B
TypeScript
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;
|