Interface Watchable<T>

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

Type Parameters

  • T

Hierarchy

Properties

Properties

watch: ((watcher) => Unwatch)

Type declaration

    • (watcher): Unwatch
    • Subscribes watcher to receive notifications.

      Parameters

      • watcher: Watcher<T>

        The subscribed function.

      Returns Unwatch

      • a callback for unsubscribing

Generated using TypeDoc