mirror of
https://github.com/usatiuk/door-thing.git
synced 2025-10-26 19:17:49 +01:00
12 lines
254 B
TypeScript
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;
|
|
}
|
|
}
|