Converts tests to TypeScript (#300)

This commit is contained in:
Jaco Greeff
2019-02-14 10:48:08 +01:00
committed by GitHub
parent 2a14a8b553
commit 1e6eb2c283
158 changed files with 89 additions and 183 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import hexToBn from './toBn';
/**
* @name hexToNumber
* @signature hexToNumber (value?: string): number
* @summary Creates a Number value from a Buffer object.
* @description
* `null` inputs returns an NaN result, `hex` values return the actual value as a `Number`.
@@ -19,7 +18,7 @@ import hexToBn from './toBn';
* hexToNumber('0x1234'); // => 0x1234
* ```
*/
export default function hexToNumber (value?: string): number {
export default function hexToNumber (value?: string | null): number {
if (!value) {
return NaN;
}