Files
door-thing/door-thing-app/src/renderer.d.ts

12 lines
254 B
TypeScript

export interface IElectronAPI {
send: (channel: string, data: any) => Promise<void>;
receive: (channel: string, func: any) => void;
}
declare global {
interface Window {
api: IElectronAPI;
newDevice: Promise<BluetoothDevice> | null;
}
}