feat: refactor

This commit is contained in:
Zamitto 2024-07-02 23:31:07 -03:00
parent b8bd786c45
commit aa253466a3
12 changed files with 19 additions and 19 deletions

View file

@ -8,6 +8,13 @@ export enum DownloadSourceStatus {
Errored,
}
export class UserNotLoggedInError extends Error {
constructor() {
super("user not logged in");
this.name = "UserNotLoggedInError";
}
}
const FORMAT = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
export const formatBytes = (bytes: number): string => {