update declaration

This commit is contained in:
Timo Hocker 2020-04-24 16:59:23 +02:00
parent fb0b1ac004
commit 86bc73f5bd

3
index.d.ts vendored
View File

@ -26,9 +26,10 @@ export function to_utf8(str: string, encoding: string): string;
* encode a number to hex * encode a number to hex
* *
* @param {number} n number to encode * @param {number} n number to encode
* @param {number} padding minumum length of output
* @returns {string} hex * @returns {string} hex
*/ */
export function num_to_hex(n: number): string; export function num_to_hex(n: number, padding?: number): string;
/** /**
* decode a number from hex * decode a number from hex
* *