cartApi: {
    get: () => Promise<AxiosResponse<any, any, {}>>;
    add: (
        data: {
            product_id: number;
            variant_id: number;
            design_id?: number;
            quantity?: number;
            custom_text?: string;
            custom_number?: string;
        },
    ) => Promise<AxiosResponse<any, any, {}>>;
    updateItem: (
        itemId: number,
        quantity: number,
    ) => Promise<AxiosResponse<any, any, {}>>;
    removeItem: (itemId: number) => Promise<AxiosResponse<any, any, {}>>;
    clear: () => Promise<AxiosResponse<any, any, {}>>;
} = ...

Type declaration

  • get: () => Promise<AxiosResponse<any, any, {}>>
  • add: (
        data: {
            product_id: number;
            variant_id: number;
            design_id?: number;
            quantity?: number;
            custom_text?: string;
            custom_number?: string;
        },
    ) => Promise<AxiosResponse<any, any, {}>>
  • updateItem: (itemId: number, quantity: number) => Promise<AxiosResponse<any, any, {}>>
  • removeItem: (itemId: number) => Promise<AxiosResponse<any, any, {}>>
  • clear: () => Promise<AxiosResponse<any, any, {}>>