@ -2,7 +2,6 @@ export interface IElectronAPI {
activatePlugin: (name: string) => Promise<boolean>
plugins: {
name: string
activate: () => Promise<boolean>
on: (cb: any) => void
send: (message: Partial<Message>) => void
}[]
@ -16,7 +16,6 @@ contextBridge.exposeInMainWorld('electronAPI', {
plugins: exposedPLugins.map(name => {
return {
name,
activate: () => ipcRenderer.invoke('engine:activatePlugin', name),
on: (cb:any) => ipcRenderer.on(`${name}:send`, cb),
send: (message: Partial<Message>) => ipcRenderer.send(`${name}:on`, message)
}