@neutrium/quantity - v7.1.0
    Preparing search index...

    Interface QuantityEvaluatorOptions<T, Numeric>

    Configuration for a calculator bound to a Quantity class and its numeric context.

    interface QuantityEvaluatorOptions<T, Numeric extends object = object> {
        constants?: Readonly<Record<string, NumericInput<Quantity<T, Numeric>>>>;
        functions?: Readonly<
            Record<string, ExpressionFunction<Quantity<T, Numeric>>>,
        >;
        limits?: ExpressionLimits;
        Quantity: new (
            input: QuantityInput<T>,
            units?: string,
            parser?: PrattParser,
        ) => Quantity<T, Numeric>;
    }

    Type Parameters

    • T
    • Numeric extends object = object

    Hierarchy

    Index
    constants?: Readonly<Record<string, NumericInput<Quantity<T, Numeric>>>>

    Additional named constants. Built-in names cannot be replaced.

    functions?: Readonly<Record<string, ExpressionFunction<Quantity<T, Numeric>>>>

    Additional named functions. Built-in names cannot be replaced.

    Quantity: new (
        input: QuantityInput<T>,
        units?: string,
        parser?: PrattParser,
    ) => Quantity<T, Numeric>

    Preset or configured class used for every value and operation.

    Type Declaration