mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
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
23 lines
462 B
TypeScript
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 {};
|