1.1.4 • Published 6 months ago
@types/hex2dec v1.1.4
Installation
npm install --save @types/hex2dec
Summary
This package contains type definitions for hex2dec (https://github.com/donmccurdy/hex2dec#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex2dec.
index.d.ts
// Type definitions for hex2dec 1.1
// Project: https://github.com/donmccurdy/hex2dec#readme
// Definitions by: Adriaan Knapen <https://github.com/Addono>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Takes a hexadecimal string and, when the hexedecimal is valid,
* returns it as a decimal string.
*/
export function hexToDec(hexStr: string): string | null;
/**
* Takes a decimal string and, when the decimal is valid,
* returns it as a hexadecimal string.
*/
export function decToHex(decStr: string, opts?: { prefix?: boolean | undefined }): string | null;
Additional Details
- Last updated: Thu, 08 Jul 2021 14:22:50 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Adriaan Knapen.