respira/src/types/electron.d.ts
Jan-Henrik Bruhn a253901fb4
Some checks are pending
Build, Test, and Lint / Build, Test, and Lint (push) Waiting to run
Draft Release / Draft Release (push) Waiting to run
Draft Release / Build Web App (push) Blocked by required conditions
Draft Release / Build Release - macos-latest (push) Blocked by required conditions
Draft Release / Build Release - ubuntu-latest (push) Blocked by required conditions
Draft Release / Build Release - windows-latest (push) Blocked by required conditions
Draft Release / Upload to GitHub Release (push) Blocked by required conditions
fix: run linter
2025-12-18 11:39:22 +01:00

23 lines
462 B
TypeScript

export interface BluetoothDevice {
deviceId: string;
deviceName: string;
}
export interface ElectronAPI {
invoke<T = unknown>(channel: string, ...args: unknown[]): Promise<T>;
onBluetoothDeviceList: (
callback: (devices: BluetoothDevice[]) => void,
) => void;
selectBluetoothDevice: (deviceId: string) => void;
}
declare global {
interface Window {
electronAPI?: ElectronAPI;
process?: {
type?: string;
};
}
}
export {};