@webilix/helper-library
Version:
JavaScript/TypeScript programming helper library.
19 lines • 802 B
TypeScript
export type UnitVolume = 'LT' | 'ML' | 'GL' | 'BR';
declare function getRate(from: UnitVolume): number;
declare function getRate(from: UnitVolume, to: UnitVolume): number;
declare function convert(value: number, from: UnitVolume): number;
declare function convert(value: number, from: UnitVolume, to: UnitVolume): number;
declare function convert(value: number, from: UnitVolume, decimal: number): number;
declare function convert(value: number, from: UnitVolume, to: UnitVolume, decimal: number): number;
export declare const VOLUME: {
readonly list: UnitVolume[];
readonly options: {
id: UnitVolume;
title: string;
}[];
getTitle: (unit: UnitVolume) => string;
getRate: typeof getRate;
convert: typeof convert;
};
export {};
//# sourceMappingURL=volume.d.ts.map