Skip to main content

MeasurementReading

A rounded measurement and the unit it is in.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { MeasurementReading } from "@mapcairn/core";

interface MeasurementReading<Unit extends string>

Type parameters​

  • Unit (string)

Properties​

unit​

readonly unit: Unit;

The unit the value is in.

value​

readonly value: number;

The measurement, rounded for reading.

Source: packages/core/src/units/measurement.ts:25