A signal that holds a mutable value.

The value stored in this object can be changed through assignment, and all its users will be notified automatically.

interface Reactive<T> {
    value: T;
    peek(): T;
    toJSON(): T;
    toString(): string;
}

Type Parameters

  • T

Hierarchy (View Summary)

Methods

Properties

Methods

  • Accesses the current value without being considered a user of this value.

    Use this method if you do not wish to be notified about changes.

    Returns T

Properties

value: T

Reads or writes the current value in this reactive object.