run formatter

This commit is contained in:
Arman committed 2023-03-23 16:24:19 +01:00
1 parent add49c2b05
commit 2b9d7ce97e
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
import prettyBytes from 'pretty-bytes';
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] as const;
export type Size = (typeof sizes)[number];
export type Size = typeof sizes[number];
export function calculateSize(bytes: number, decimals = 1) {
if (bytes === 0) return '0 Bytes';