Skip to content

Commit

Permalink
Merge pull request #3992 from Tuditi/feat/expose-error-types
Browse files Browse the repository at this point in the history
feat: expose error types
  • Loading branch information
ganchoradkov authored Nov 29, 2023
2 parents 5ebc668 + d85d5a6 commit 846bb97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/utils/src/errors.ts
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down Expand Up @@ -100,7 +100,7 @@ const SDK_ERRORS = {
},
};

const INTERNAL_ERRORS = {
export const INTERNAL_ERRORS = {
NOT_INITIALIZED: {
message: "Not initialized.",
code: 1,
Expand Down

0 comments on commit 846bb97

Please sign in to comment.