# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex2dec/index.d.ts)
````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](https://github.com/Addono).
