useCartErrorParamsResolver
Category:
Cart & Checkout
Types
ts
export function useCartErrorParamsResolver(): UseCartErrorParamsResolver
ts
export type UseCartErrorParamsResolver = {
resolveCartError: (errorObject: ErrorObjectParam) => {
params: { [key: string]: string | number | null } | null;
messageKey: string;
};
};
ts
export type ErrorObjectParam = {
messageKey: string;
key: string;
message?: string;
code?: number;
level?: number;
};