Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 97

Commit e315571

Browse files
authoredMay 10, 2024··
fix: input type should accept string
1 parent c9840ae commit e315571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎types/filesize.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ type FileSizeReturnType<Options extends FileSizeOptions> =
5252
? FileSizeReturnObject
5353
: string;
5454

55-
export function filesize<Options extends FileSizeOptions = undefined>(byteCount: number, options?: Options): FileSizeReturnType<Options>
55+
export function filesize<Options extends FileSizeOptions = undefined>(byteCount: number | string, options?: Options): FileSizeReturnType<Options>
5656
export function partial<Options extends FileSizeOptions = undefined>(options?: Options): (byteCount: number) => FileSizeReturnType<Options>

0 commit comments

Comments
 (0)
Please sign in to comment.