hap-fluent / isMultiService
Function: isMultiService()
ts
function isMultiService<T>(state): state is { [key: string]: Partial<T> };Defined in: packages/hap-fluent/src/AccessoryHandler.ts:66
Determine if the provided state object represents multiple service instances.
Type Parameters
Parameters
| Parameter | Type | Description |
|---|---|---|
state | | Partial<T> | { [key: string]: Partial<T>; } | Single-service state or a keyed map of service states. |
Returns
state is { [key: string]: Partial<T> }
True when the state contains multiple service entries.