10 lines
355 B
TypeScript
10 lines
355 B
TypeScript
// Provide typescript definitions / mappings between `electron-app/preload.ts`
|
|
// and 'common/utils/electron.ts'
|
|
export type ElectronBridgeCallback = (data?: any) => void;
|
|
|
|
export interface ElectronBridgeFunctions {
|
|
addListener(event: string, cb: ElectronBridgeCallback);
|
|
sendEvent(event: string, data?: any);
|
|
openInBrowser(url: string): boolean;
|
|
}
|