UNPKG

klf-200-api

Version:

This module provides a wrapper to the socket API of a Velux KLF-200 interface. You will need at least firmware 0.2.0.0.71 on your KLF interface for this library to work.

31 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = void 0; const TypedEvent_js_1 = require("./TypedEvent.js"); ("use strict"); class Component { /** * The event will be emitted when any of the public properties has changed. * The event object contains a reference to the product, the name of the property * that has changed and the new value of that property. * * @memberof Component */ propertyChangedEvent = new TypedEvent_js_1.TypedEvent(); /** * This method emits the property changed event for the provided property name. * * @protected * @param {keyof Component} propertyName Name of the property that has changed. * @memberof Component */ async propertyChanged(propertyName) { await this.propertyChangedEvent.emit({ o: this, propertyName: propertyName, propertyValue: this[propertyName], }); } } exports.Component = Component; //# sourceMappingURL=PropertyChangedEvent.js.map