From 86bc73f5bde07aced0f9c5eb81d785195bb6e6db Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 24 Apr 2020 16:59:23 +0200 Subject: [PATCH] update declaration --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index f603626..73ac8f4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -26,9 +26,10 @@ export function to_utf8(str: string, encoding: string): string; * encode a number to hex * * @param {number} n number to encode + * @param {number} padding minumum length of output * @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 *