@types/node-temperature-converter
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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 .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/node-temperature-converter

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • types