diff --git a/packages/headless/src/app/commerce-ssr-engine/factories/build-factory.ts b/packages/headless/src/app/commerce-ssr-engine/factories/build-factory.ts index 6c3e5c0977..a5812cff8b 100644 --- a/packages/headless/src/app/commerce-ssr-engine/factories/build-factory.ts +++ b/packages/headless/src/app/commerce-ssr-engine/factories/build-factory.ts @@ -34,7 +34,8 @@ export interface SSRCommerceEngine extends CommerceEngine { } export type CommerceEngineDefinitionOptions< - TControllers extends ControllerDefinitionsMap, + TControllers extends + ControllerDefinitionsMap = ControllerDefinitionsMap, > = EngineDefinitionOptions; function isListingFetchCompletedAction(action: unknown): action is Action { diff --git a/packages/samples/headless-ssr-commerce/lib/commerce-engine-config.ts b/packages/samples/headless-ssr-commerce/lib/commerce-engine-config.ts index e79c85001a..63a2c5a6c8 100644 --- a/packages/samples/headless-ssr-commerce/lib/commerce-engine-config.ts +++ b/packages/samples/headless-ssr-commerce/lib/commerce-engine-config.ts @@ -1,6 +1,4 @@ import { - Controller, - ControllerDefinitionsMap, CommerceEngineDefinitionOptions, defineProductList, defineCart, @@ -23,10 +21,6 @@ import { defineRecommendations, //defineParameterManager, } from '@coveo/headless-react/ssr-commerce'; -type CommerceEngineConfig = CommerceEngineDefinitionOptions< - ControllerDefinitionsMap ->; - export default { // By default, the logger level is set to 'warn'. This level may not provide enough information for some server-side errors. To get more detailed error messages, set the logger level to a more verbose level, such as 'debug'. // loggerOptions: {level: 'debug'}, @@ -65,4 +59,4 @@ export default { facetGenerator: defineFacetGenerator(), breadcrumbManager: defineBreadcrumbManager(), }, -} satisfies CommerceEngineConfig; +} satisfies CommerceEngineDefinitionOptions;