Interface MinimalWritable<T>

The minimal requirements of the writable store contract.

A minimal writable is a Readable / subscribable, but only has a set method omitting the update method from Writable.

interface MinimalWritable<T> {
    set(this: void, value: T): void;
    subscribe(
        this: void,
        run: Subscriber<T>,
        invalidate?: Invalidator<T>,
    ): Unsubscriber;
}

Type Parameters

  • T
Hierarchy

Methods

Methods

  • Set value and inform subscribers.

    Parameters

    • this: void
    • value: T

      to set

    Returns void