diff --git a/packages/utils/src/errors.ts b/packages/utils/src/errors.ts index eda494e7d..b13101ae3 100644 --- a/packages/utils/src/errors.ts +++ b/packages/utils/src/errors.ts @@ -1,13 +1,13 @@ /** * Types */ -type SdkErrorKey = keyof typeof SDK_ERRORS; -type InternalErrorKey = keyof typeof INTERNAL_ERRORS; +export type SdkErrorKey = keyof typeof SDK_ERRORS; +export type InternalErrorKey = keyof typeof INTERNAL_ERRORS; /** * Constants */ -const SDK_ERRORS = { +export const SDK_ERRORS = { /* ----- INVALID (1xxx) ----- */ INVALID_METHOD: { message: "Invalid method.", @@ -100,7 +100,7 @@ const SDK_ERRORS = { }, }; -const INTERNAL_ERRORS = { +export const INTERNAL_ERRORS = { NOT_INITIALIZED: { message: "Not initialized.", code: 1,