Documents for @litert/utils-number
    Preparing search index...

    Interface IUnit<T>

    The interface for unit information.

    interface IUnit<T extends string | number> {
        factor: number;
        name: T;
    }

    Type Parameters

    • T extends string | number
    Index

    Properties

    Properties

    factor: number

    The factor of the unit, relative to the base unit.

    name: T

    The name of the unit.