From e315571bec1db3f3a0dead7ba6a47f382f35f861 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 10 May 2024 09:59:16 +0800 Subject: [PATCH] fix: input type should accept string --- types/filesize.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/filesize.d.ts b/types/filesize.d.ts index 10d33e8..5356964 100644 --- a/types/filesize.d.ts +++ b/types/filesize.d.ts @@ -52,5 +52,5 @@ type FileSizeReturnType = ? FileSizeReturnObject : string; -export function filesize(byteCount: number, options?: Options): FileSizeReturnType +export function filesize(byteCount: number | string, options?: Options): FileSizeReturnType export function partial(options?: Options): (byteCount: number) => FileSizeReturnType \ No newline at end of file