@openhps/core
    Preparing search index...

    Type Alias UnitFunctionDefinition<In, Out>

    type UnitFunctionDefinition<In, Out> = {
        fromUnit: (x: Out) => In;
        inputType?: new (...args: any[]) => UnitValueType;
        outputType?: new (...args: any[]) => UnitValueType;
        toUnit: (x: In) => Out;
        unit: string;
    }

    Type Parameters

    • In
    • Out
    Index
    fromUnit: (x: Out) => In
    inputType?: new (...args: any[]) => UnitValueType
    outputType?: new (...args: any[]) => UnitValueType
    toUnit: (x: In) => Out
    unit: string

    Target unit