Skip to content

Commit c7de10f

Browse files
committed
keep units till gb
1 parent 657cf61 commit c7de10f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/support/File.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB']
1+
const units = ['B', 'kB', 'MB', 'GB'] as const
22

33
/**
44
* Formats the file size in bytes to a human-readable format. It also accepts

0 commit comments

Comments
 (0)