From 4a268e738d0dc818c4d4174fbb360510b908c806 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Tue, 19 Jan 2021 17:36:09 -0500 Subject: [PATCH] Removed some comments --- framework/bigcommerce/api/cart/handlers/add-item.ts | 1 - framework/bigcommerce/api/cart/handlers/remove-item.ts | 1 - framework/bigcommerce/api/cart/handlers/update-item.ts | 1 - framework/commerce/api/index.ts | 2 -- 4 files changed, 5 deletions(-) diff --git a/framework/bigcommerce/api/cart/handlers/add-item.ts b/framework/bigcommerce/api/cart/handlers/add-item.ts index 25ae3880e..f58a6c43c 100644 --- a/framework/bigcommerce/api/cart/handlers/add-item.ts +++ b/framework/bigcommerce/api/cart/handlers/add-item.ts @@ -2,7 +2,6 @@ import { parseCartItem } from '../../utils/parse-item' import getCartCookie from '../../utils/get-cart-cookie' import type { CartHandlers } from '..' -// Return current cart info const addItem: CartHandlers['addItem'] = async ({ res, body: { cartId, item }, diff --git a/framework/bigcommerce/api/cart/handlers/remove-item.ts b/framework/bigcommerce/api/cart/handlers/remove-item.ts index 2ee5dbe16..c980cbb42 100644 --- a/framework/bigcommerce/api/cart/handlers/remove-item.ts +++ b/framework/bigcommerce/api/cart/handlers/remove-item.ts @@ -1,7 +1,6 @@ import getCartCookie from '../../utils/get-cart-cookie' import type { CartHandlers } from '..' -// Return current cart info const removeItem: CartHandlers['removeItem'] = async ({ res, body: { cartId, itemId }, diff --git a/framework/bigcommerce/api/cart/handlers/update-item.ts b/framework/bigcommerce/api/cart/handlers/update-item.ts index c64c111df..df9ccaee8 100644 --- a/framework/bigcommerce/api/cart/handlers/update-item.ts +++ b/framework/bigcommerce/api/cart/handlers/update-item.ts @@ -2,7 +2,6 @@ import { parseCartItem } from '../../utils/parse-item' import getCartCookie from '../../utils/get-cart-cookie' import type { CartHandlers } from '..' -// Return current cart info const updateItem: CartHandlers['updateItem'] = async ({ res, body: { cartId, itemId, item }, diff --git a/framework/commerce/api/index.ts b/framework/commerce/api/index.ts index b1ef09a62..77b2eeb7e 100644 --- a/framework/commerce/api/index.ts +++ b/framework/commerce/api/index.ts @@ -32,5 +32,3 @@ export interface CommerceAPIFetchOptions { variables?: Variables preview?: boolean } - -// TODO: define interfaces for all the available operations and API endpoints