diff --git a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.ts b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.ts index 88e9bba9ac3..d894bd2c1aa 100644 --- a/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.ts +++ b/packages/headless/src/controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr.ts @@ -76,9 +76,9 @@ export type { export type FacetGeneratorState = MappedFacetStates; -type MappedFacetStates = Array; +export type MappedFacetStates = Array; -type MappedFacetState = { +export type MappedFacetState = { [T in FacetType]: T extends 'numericalRange' ? NumericFacetState : T extends 'regular' diff --git a/packages/headless/src/ssr-commerce.index.ts b/packages/headless/src/ssr-commerce.index.ts index e76a6794ca4..c8e2a4f00e7 100644 --- a/packages/headless/src/ssr-commerce.index.ts +++ b/packages/headless/src/ssr-commerce.index.ts @@ -73,6 +73,8 @@ export type { RegularFacet, RegularFacetState, RegularFacetValue, + MappedFacetStates, + MappedFacetState, } from './controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr'; export {defineFacetGenerator} from './controllers/commerce/core/facets/generator/headless-commerce-facet-generator.ssr';