Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Watchable<T>

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

Type parameters

  • T

Hierarchy

Index

Properties

Properties

watch

watch: (watcher: Watcher<T>) => Unwatch

Type declaration

    • Subscribes watcher to receive notifications.

      Parameters

      • watcher: Watcher<T>

        The subscribed function.

      Returns Unwatch

      • a callback for unsubscribing

Generated using TypeDoc