Metakit / @doeixd/metakit/build
readsOfTerm
function · packages/metakit/src/ops/reads.ts:23
function readsOfTerm(node: Node.Node): Option.Option<ReadonlyArray<Read>>Every place node reads, the reads of an element whose binder is outside
node among them: Option.none() means unbounded (an opaque term with no
declared reads).
A Rows body's read of its element is a read of every element: under a
list at todos, a read of the element's title reads todos.*.title,
and under related rows <relation>.*.title below the row they point at. A
body that reads nothing of its element still reads which elements there
are: the list itself.