Skip to content

hap-fluent / ServiceForInterface

Type Alias: ServiceForInterface<T>

ts
type ServiceForInterface<T> = T["serviceName"] extends keyof ServiceMap ? ServiceMap[T["serviceName"]] : never;

Defined in: packages/hap-fluent/src/types/index.ts:28

Type Parameters

Type Parameter
T extends Interfaces

Released under the Apache-2.0 License.