mirror of
https://github.com/usatiuk/door-thing.git
synced 2025-10-27 03:27:48 +01:00
a truly horrifying autoconnect
This commit is contained in:
11
door-thing-app/src/renderer.d.ts
vendored
Normal file
11
door-thing-app/src/renderer.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user