diff --git a/README.md b/README.md index e944c7569..8410f5641 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,8 @@ Main folder and its exposed functions - `product` - usePrice - useSearch + - getProduct + - getAllProducts - `wishlist` - useWishlist - addWishlistItem diff --git a/framework/bigcommerce/api/operations/get-product.ts b/framework/bigcommerce/api/operations/get-product.ts index 50efb97aa..2476d1398 100644 --- a/framework/bigcommerce/api/operations/get-product.ts +++ b/framework/bigcommerce/api/operations/get-product.ts @@ -111,7 +111,7 @@ async function getProduct({ setProductLocaleMeta(product) } - return { product: normalizeProduct(product as any) } + return { product: normalizeProduct(product) } } return {} diff --git a/framework/bigcommerce/product/index.ts b/framework/bigcommerce/product/index.ts index 426a3edcd..83d507a2c 100644 --- a/framework/bigcommerce/product/index.ts +++ b/framework/bigcommerce/product/index.ts @@ -1,2 +1,4 @@ export { default as usePrice } from './use-price' export { default as useSearch } from './use-search' +export { default as getProduct } from '../api/operations/get-product' +export { default as getAllProducts } from '../api/operations/get-all-products'