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

1.1.4 • Public • Published

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

/**
 * 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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Adriaan Knapen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hex2dec

Weekly Downloads

2,528

Version

1.1.4

License

MIT

Unpacked Size

3.26 kB

Total Files

5

Last publish

Collaborators

  • types