Parsed output; Quantity requires a QuantityDefinition shape.
Optional ReadonlyconfigEffective settings, when the implementation supports configurable parser caches.
Parse a scalar and unit expression.
Expression supplied by the constructor. With a separate scalar, only the unit expression is passed and the returned scalar is replaced.
Optionaldecimal: ScientificDecimalConstructor
Optional arithmetic constructor; use it to preserve isolated Quantity settings.
A complete result containing a Decimal scalar and normalized unit arrays.
Structural contract for a parser supplied to the Quantity constructor.
Remarks
Import this interface from
@neutrium/quantity/core. A compatibleparsemethod is sufficient; an explicitimplements Parserdeclaration is unnecessary.See