Skip to content

Documentation / @interstellar-tools/types / MeasureInterface

Interface: MeasureInterface ​

Defined in: distance.ts:155

Represents a measurement with an associated unit.

Deprecated ​

Use DistanceInterface, which is identical. MeasureInterface will be removed in 2.0.

Example ​

ts
const planetRadius: MeasureInterface = { value: 6371, unit: 'km' };

Extends ​

Properties ​

unit ​

ts
unit: DistanceUnitType;

Defined in: distance.ts:156

The unit of measurement.


value ​

ts
value: number;

Defined in: numeric.ts:18

The numeric value of the measurement.

Inherited from ​

ValueInterface.value