A read says it is a read.
An observable is not its value. A computed value reads through read, a component through a hook; math or a comparison on the observable itself is a type error.
import { Box, Computed } from "@frondruntime/sorus";
const $price = Box.make(realm, 12);
const $quantity = Box.make(realm, 3);
// A computed value reads through read, and recomputes when either box changes.
const $total = Computed.make(realm, (read) => read($price) * read($quantity)); // 36
// A box used as its value
const $broken = Computed.make(realm, () => $price * $quantity);^^^^^^ type error TS2362if ($total > 30) {^^^^^^^^^^^ type error TS2365 notify();
}