diff --git a/src/index.ts b/src/index.ts index 96a211d..b3ba4c3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,13 +21,7 @@ import UserProfile from "./scripts/classes/mapping/user-profile"; import LatestSearchQuery from "./scripts/classes/query/latest-search-query"; import HandiworkSearchQuery from "./scripts/classes/query/handiwork-search-query"; import HandiWork from "./scripts/classes/handiwork/handiwork"; -import { UserNotLogged } from "./scripts/classes/errors"; - -//#region Global variables - -const USER_NOT_LOGGED = "User not authenticated, unable to continue"; - -//#endregion +import { UserNotLogged, USER_NOT_LOGGED } from "./scripts/classes/errors"; //#region Re-export classes diff --git a/src/scripts/classes/errors.ts b/src/scripts/classes/errors.ts index 821b269..5fcd304 100644 --- a/src/scripts/classes/errors.ts +++ b/src/scripts/classes/errors.ts @@ -20,6 +20,8 @@ interface IBaseError { error: Error; } +export const USER_NOT_LOGGED = "User not authenticated, unable to continue"; + export class GenericAxiosError extends Error implements IBaseError { id: number; message: string;