Skip to content

useCartErrorParamsResolver

useCartErrorParamsResolver

Category:
Cart & Checkout

Types

ts
export function useCartErrorParamsResolver(): UseCartErrorParamsResolver

source code

ts
export type UseCartErrorParamsResolver = {
  resolveCartError: (errorObject: ErrorObjectParam) => {
    params: { [key: string]: string | number | null | undefined } | null;
    messageKey: string;
  };
};

source code

ts
export type ErrorObjectParam = {
  messageKey: string;
  key: string;
  message?: string;
  code?: number;
  level?: number;
};

source code