compute - v3.0.0-beta.0
    Preparing search index...

    Interface Signal<T>

    A writable signal. Call it with no arguments to read the current value, or with one argument to set a new value. Subscribers are notified whenever the value changes (strict equality).

    interface Signal<T> {
        "[WRITABLE]": true;
        subscribe(observer: Observer<T>): Subscription;
        (newValue: T): T;
        (): T;
        (): T;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    "[WRITABLE]": true