interface WritableComputedRef<T, S> {
    [ComputedRefSymbol]: true;
    [RefSymbol]: true;
    [WritableComputedRefSymbol]: true;
    effect: ComputedRefImpl<any>;
    value: T;
}

Type Parameters

  • T
  • S = T

Hierarchy

  • BaseComputedRef<T, S>
    • WritableComputedRef

Properties

[ComputedRefSymbol]: true
[RefSymbol]: true

Type differentiator only. We need this to be in public d.ts but don't want it to show up in IDE autocomplete, so we use a private Symbol instead.

[WritableComputedRefSymbol]: true
effect: ComputedRefImpl<any>

computed no longer uses effect

Accessors

  • get value(): T
  • Returns T

  • set value(_): void
  • Parameters

    Returns void