UNPKG

homebridge-plugin-wrapper

Version:

Wrapper for Homebridge and NodeJS-HAP with reduced dependencies that allows to intercept plugin values and also send to them

16 lines 773 B
import { Accessory } from "./Accessory"; import { Characteristic } from "./Characteristic"; import { Service } from "./Service"; export declare function parseCharacteristicJSON(json: any): Characteristic; export declare function parseServiceJSON(json: any): Service; /** * Accepts object-literal JSON structures from previous versions of HAP-NodeJS and parses them into * newer-style structures of Accessory/Service/Characteristic objects. */ export declare function parseAccessoryJSON(json: any): Accessory; /** * Loads all accessories from the given folder. Handles object-literal-style accessories, "accessory factories", * and new-API style modules. */ export declare function loadDirectory(dir: string): Accessory[]; //# sourceMappingURL=AccessoryLoader.d.ts.map