mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
run formatter
This commit is contained in:
1 parent
add49c2b05
commit
2b9d7ce97e
1 file changed
+1
-1
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user