From 1b7cf2b85a360414aef413e815e0a3a258c6ed4e Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 10 Mar 2021 10:00:57 +0100 Subject: [PATCH] Export const USER_NOT_LOGGED --- src/index.ts | 8 +------- src/scripts/classes/errors.ts | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) 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;