Interface ReadableSignal<T>

This interface augments the base Readable interface by adding the ability to call the store as a function to get its value.

interface ReadableSignal<T> {
    [observable](): Readable<T>;
    subscribe(subscriber): UnsubscribeFunction & UnsubscribeObject;
    (): T;
}

Type Parameters

  • T

Hierarchy (view full)

  • Returns the value of the store. This is a shortcut for calling get with the store.

    Returns T

Methods

Generated using TypeDoc