| 1 | export interface DesktopBridge { |
| 2 | send(channel: string, data?: unknown): void; |
| 3 | on(channel: string, callback: (args: unknown) => void): void; |
| 4 | } |
| 5 | |
| 6 | export function getDesktopBridge(): DesktopBridge | null { |
| 7 | if (typeof window.electron === 'object') return window.electron as DesktopBridge; |
no outgoing calls
no test coverage detected