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/pinna";
const $price = box(realm, 12);
const $quantity = box(realm, 3);
// A computed value reads through read, and recomputes when either box changes.
const $total = computed(realm, (read) => read($price) * read($quantity)); // 36
// A box used as its value
const $broken = computed(realm, () => $price * $quantity);^^^^^^ type error TS2362if ($total > 30) {^^^^^^^^^^^ type error TS2365 notify();
}