Type Alias ObservableCallback<V>

ObservableCallback<V>: ((source: Observable<V>, group: unknown) => void)

A callback used for watching changes in a value of an Observable.

Type Parameters

  • V

Type declaration

    • (source, group): void
    • Parameters

      • source: Observable<V>

        The observable where this change originated from. This will be the last observable; if a value is transformed, the transformable observer will be the source, not the initial observable.

      • group: unknown

        The observable group that this change belongs to. Useful for selectively ignoring changes. undefined by default, which means that the change doesn't belong to any group and shouldn't be ignored.

      Returns void