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.
25 lines (24 loc) • 848 B
TypeScript
import { TypedEvent } from "./TypedEvent.js";
export type PropertyChangedEvent = {
o: object;
propertyName: string;
propertyValue: any;
};
export declare abstract 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
*/
readonly propertyChangedEvent: TypedEvent<PropertyChangedEvent>;
/**
* 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
*/
protected propertyChanged(propertyName: keyof this): Promise<void>;
}