diff --git a/packages/atomic/src/components/common/interface/store.ts b/packages/atomic/src/components/common/interface/store.ts index 433143d654..106020ca01 100644 --- a/packages/atomic/src/components/common/interface/store.ts +++ b/packages/atomic/src/components/common/interface/store.ts @@ -11,6 +11,13 @@ import {AnyEngineType} from './bindings'; export interface CommonStore { state: StoreData; + get: ( + propName: PropName + ) => StoreData[PropName]; + set: ( + propName: PropName, + value: StoreData[PropName] + ) => void; onChange: ( propName: PropName, cb: (newValue: StoreData[PropName]) => void diff --git a/packages/atomic/src/components/search/atomic-search-interface/store.ts b/packages/atomic/src/components/search/atomic-search-interface/store.ts index e42f712a68..b8d1b23998 100644 --- a/packages/atomic/src/components/search/atomic-search-interface/store.ts +++ b/packages/atomic/src/components/search/atomic-search-interface/store.ts @@ -13,7 +13,6 @@ import { } from '../../common/facets/facet-common-store'; import { BaseStore, - CommonStore, createBaseStore, getFacetElements, registerFacet, @@ -82,7 +81,7 @@ export function createSearchStore(): SearchStore { facetElements: [], fieldsToInclude: [], sortOptions: [], - }) as CommonStore; + }); return { ...store,