@khanisak/temperature-converter
Version:
Javascript lightweight library to manipulate temperature units
28 lines (27 loc) • 847 B
TypeScript
import IBaseTemperature from '../interfaces/IBaseTemperature';
import IUnit from '../interfaces/IUnit';
import { Celcius } from './Celcius';
import { Delisle } from './Delisle';
import { Fahrenheit } from './Fahrenheit';
import { Kelvin } from './Kelvin';
import { Rankine } from './Rankine';
import { Reamur } from './Reamur';
import { Romer } from './Romer';
import Temperature from './Temperature';
declare class Newton extends Temperature implements IBaseTemperature {
unit: IUnit;
constructor(value: number);
static unit: {
name: string;
code: string;
};
toCelcius: () => Celcius;
toDelisle: () => Delisle;
toFahrenheit: () => Fahrenheit;
toKelvin: () => Kelvin;
toNewton: () => this;
toReamur: () => Reamur;
toRankine: () => Rankine;
toRomer: () => Romer;
}
export { Newton };