Installation
npm install --save @types/node-temperature-converter
Summary
This package contains type definitions for node-temperature-converter (https://github.com/Project-IX/ntc#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-temperature-converter.
index.d.ts
export class Celsius {
/**
* Celsius constructor
*/
constructor(x: number);
degrees: number;
/**
* Converts celsius to fahrenheit
*/
toFahrenheit(): number;
/**
* Converts celsius to kelvin
*/
toKelvin(): number;
/**
* String representation of celsius
*/
toString(): string;
}
export class Fahrenheit {
/**
* Fahrenheit constructor
*/
constructor(x: number);
degrees: number;
/**
* Converts Fahrenheit to celsius
*/
toCelsius(): number;
/**
* Converts Fahrenheit to kelvin
*/
toKelvin(): number;
/**
* String representation of Fahrenheit
*/
toString(): string;
}
export class Kelvin {
/**
* Kelvin constructor
*/
constructor(x: number);
degrees: number;
/**
* Converts Kelvin to celsius
*/
toCelsius(): number;
/**
* Converts Kelvin to Fahrenheit
*/
toFahrenheit(): number;
/**
* String representation of Kelvin
*/
toString(): string;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by .