export interface ModalIPCMessages { "hello-renderer": { version: string }, "hello-controller": { accepted: true, modalId: string, modalType: string, constructorArguments: any[], } | { accepted: false, message: string }, /* "create-inline-modal": { modalId: string, modalType: string, constructorArguments: any[], }, "destroy-inline-modal": { }, */ "invoke-modal-action": { modalId: string, action: "close" | "minimize" }, /* The controller has a new peer which authenticated for the modal */ "invalidate-modal-instance": {} } export type ModalIPCRenderer2ControllerMessages = Pick; export type ModalIPCController2Renderer = Pick; export type ModalIPCMessage = { type: T, payload: Messages[T] }