Item with the ability to watch for changes on properties.

interface Watchable {
    watch(property: string, cb: WatchCallback<string, any>): WatchHandle;
}

Hierarchy (View Summary)

Methods

Methods

  • Function to watch for changes on a property.

    Parameters

    • property: string

      name of the property to watch

    • cb: WatchCallback<string, any>

      event handler executed on changes

    Returns WatchHandle