State Property Model interface - manages access to a single state property.

This interface represents the public API for StateProp models, providing focused access to individual properties within a StateBean through automatic dependency management and reactive value updates.

interface KosStateProp<T> {
    id: string;
    path: string;
    attribute: string;
    value: undefined | T;
}

Type Parameters

  • T extends StatePropertyTypes = StatePropertyTypes

Properties

Properties

id: string

Unique model identifier

path: string

State path being monitored

attribute: string

Specific attribute name within the state path

value: undefined | T

Current property value (reactive)