Comparing version 0.2.3 to 0.3.0
import Fraction from 'fraction.js'; | ||
import { UnitSystem } from './UnitSystem'; | ||
import type { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition } from './types'; | ||
export declare const UnityFactor: FactorDefinition; | ||
export declare class Unit<U extends Record<string, BaseUnitDefinition>, F extends Record<string, FactorDefinition>, D extends Record<string, DerivedUnitDefinition>> { | ||
@@ -17,2 +18,3 @@ readonly unitSystem: UnitSystem<U, F, D>; | ||
divide(rhs: Unit<U, F, D>): Unit<U, F, D>; | ||
withFactor(factor?: Partial<FactorDefinition>): Unit<U, F, D>; | ||
withBestFactorFor(value: number): Unit<U, F, D>; | ||
@@ -19,0 +21,0 @@ applyFactor(value: number): number; |
{ | ||
"name": "unitlib", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "A unit library", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
19270
441