diff --git a/packages/storefront/src/lib/layouts/use-page-main.ts b/packages/storefront/src/lib/layouts/use-page-main.ts index 5413ebfbf..b3f1401d3 100644 --- a/packages/storefront/src/lib/layouts/use-page-main.ts +++ b/packages/storefront/src/lib/layouts/use-page-main.ts @@ -42,6 +42,7 @@ export const usePageHero = async ({ routeContext }: Props) => { }; type CustomSection = { type: `${string}:${string}`, props: any }; +type ProductDetailsProps = { hasDescription?: boolean, hasSpecifications?: boolean }; export const usePageSections = async ({ routeContext, handleCustomSection }: Props) => { @@ -50,7 +51,7 @@ export const usePageSections = async T | { type: 'product-shelf', props: UseProductShelfProps } | { type: 'banners-grid', props: { banners: UseBannerProps[] } } - | { type: 'product-details', props: { hasDescription?: boolean } } + | { type: 'product-details', props: ProductDetailsProps } | { type: 'breadcrumbs', props: {} } | { type: 'related-products', props: {} } | { type: 'doc-description', props: {} }