A subscribable object, accepts Watcher callbacks, sends notifications of type T .

interface Watchable<T> {
    watch: ((watcher) => Unwatch);
}

Type Parameters

  • T

Hierarchy (view full)

Properties

Properties

watch: ((watcher) => Unwatch)

Subscribes watcher to receive notifications.

Type declaration

Returns

  • a callback for unsubscribing