@neutrium/quantity - v5.0.0
    Preparing search index...

    Interface QuantityConstructor

    Constructor returned by createQuantityClass, with an optional per-instance parser override.

    interface QuantityConstructor {
        new QuantityConstructor(
            input: QuantityInitParam,
            units?: string,
            parser?: Parser<QuantityDefinition>,
        ): QuantityCore;
        config: Readonly<DecimalConfig>;
        conversionCacheConfig: CacheConfig;
        parserConfig: ParserConfig;
        withConfig<T extends new (...args: never[]) => QuantityCore>(
            this: T,
            config: QuantityConfigInput,
        ): T;
    }
    Index
    config: Readonly<DecimalConfig>

    Frozen snapshot of the class's effective Decimal settings.

    conversionCacheConfig: CacheConfig

    Immutable limits applied separately to each instance's conversion caches.

    parserConfig: ParserConfig

    Immutable parser settings shared by this class and its default parser instances.