measure
Function: measure()
Section titled “Function: measure()”function measure<P>(at?, opts?): MeasureProducer<Measure | null, P>;Defined in: src/core/producer.ts:320
A BRO measured value ({ value, uom } | null). Reads the element’s text and
its uom attribute; absent/sentinel text or a missing unit → null. A
first-class leaf, so presence (optional/required/omit) and array-item
handling apply as they do to code.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
P extends Presence | "optional" |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
at? | string |
opts? | LeafOpts<P> |
Returns
Section titled “Returns”MeasureProducer<Measure | null, P>