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.
27 lines • 909 B
JavaScript
import { TypedEvent } from "./TypedEvent.js";
("use strict");
export 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();
    /**
     * 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],
        });
    }
}
//# sourceMappingURL=PropertyChangedEvent.js.map