Comparing version 0.8.0 to 0.8.1
@@ -44,4 +44,18 @@ import Fraction from 'fraction.js'; | ||
divideValueByFactor(value: number): number; | ||
/** | ||
* Takes another unit, which is compatible with this one, and returns | ||
* a number such that if you take a quantity expressed in this unit | ||
* and multiply it by the number, you will have computed the quantity | ||
* expressed in the provided unit. | ||
*/ | ||
conversionFactorTo(targetUnit: Unit<U, F, D>): number; | ||
/** | ||
* Takes another unit, which is compatible with this one, and returns | ||
* a number such that if you take a quantity expressed in the provided | ||
* unit and multiply it by the number, you will have computed the quantity | ||
* expressed in this unit. | ||
*/ | ||
conversionFactorFrom(sourceUnit: Unit<U, F, D>): number; | ||
toString(opts?: UnitFormatOptions): string; | ||
toParts(opts?: UnitFormatOptions): UnitFormatPart[]; | ||
} |
{ | ||
"name": "unitlib", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A unit library", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37865
1021
1