hap-fluent / ServicesStateObject
Type Alias: ServicesStateObject<T>
ts
type ServicesStateObject<T> = AccessoryInformation extends TupleToUnion<T> ? InternalServicesStateObject<T> : InternalServicesStateObject<[...T, AccessoryInformation]>;Defined in: packages/hap-fluent/src/AccessoryHandler.ts:255
Partial characteristic-value map for initializing an accessory's services.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends readonly unknown[] | Tuple of HAP interface types. |
Remarks
Each key is the camelCase service name; the value is a partial record of characteristic names to initial values. AccessoryInformation is always included in the type even when not listed explicitly.