@laserware/stasis
    Preparing search index...

    Type Alias Observable<T>

    A minimal observable of state changes. For more information, see the observable proposal: https://github.com/tc39/proposal-observable

    type Observable<T> = {
        subscribe: (observer: Observer<T>) => { unsubscribe: Unsubscribe };
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    subscribe: (observer: Observer<T>) => { unsubscribe: Unsubscribe }

    The minimal observable subscription method.

    Type declaration

      • (observer: Observer<T>): { unsubscribe: Unsubscribe }
      • Parameters

        • observer: Observer<T>

          Any object that can be used as an observer. The observer object should have a next method.

        Returns { unsubscribe: Unsubscribe }

        An object with an unsubscribe method that can be used to unsubscribe the observable from the store, and prevent further emission of values from the observable.