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>;
    get(): T;
    subscribe(subscriber: Subscriber<T>): UnsubscribeFunction & UnsubscribeObject;
    (): T;
}

Type Parameters

  • T

Hierarchy (view full)

  • Returns the value of the store.

    Returns T

Methods