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