MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / DesktopBridge

Interface DesktopBridge

src/lib/DesktopBridge.ts:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 12

bindMethod · 0.80
desktopMethod · 0.80
sendRequestMethod · 0.80
setupMethod · 0.65
onMethod · 0.65
applyMethod · 0.65
bindMethod · 0.65
applyMethod · 0.65
bindMethod · 0.65
applyMethod · 0.65
bindMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected