Add typings and jsdoc comments to improve developer experience
This commit is contained in:
parent
f219b4b2bf
commit
764a3ca223
9 changed files with 765 additions and 4 deletions
21
plejd/types/DeviceRegistry.d.ts
vendored
Normal file
21
plejd/types/DeviceRegistry.d.ts
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* eslint-disable no-use-before-define */
|
||||
|
||||
export type OutputDevices = { [deviceIdAndOutput: string]: OutputDevice };
|
||||
|
||||
export interface OutputDevice {
|
||||
bleDeviceIndex: number;
|
||||
deviceId: string;
|
||||
dim?: number;
|
||||
dimmable: boolean;
|
||||
hiddenFromRoomList?: boolean;
|
||||
hiddenFromIntegrations?: boolean;
|
||||
hiddenFromSceneList?: boolean;
|
||||
name: string;
|
||||
output: number;
|
||||
roomId: string;
|
||||
state: number | undefined;
|
||||
type: string;
|
||||
typeName: string;
|
||||
version: string;
|
||||
uniqueId: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue