@empathyco/x-components
Version:
Empathy X Components
13 lines • 703 B
TypeScript
import type { Facet, FacetModelName } from '@empathyco/x-types';
import type { Store } from 'vuex';
import type { RootXStoreState } from '../../../store/store.types';
/**
* Adds an {@link Facet} to the store in case it doesn't exist for the passed facetId.
*
* @param store - The {@link https://vuex.vuejs.org/guide/ | Vuex Store}.
* @param facetId - The Facet id for the Facet that will be created.
* @param facetModelName - The {@link FacetModelName} for the Facet that will be created.
* @internal
*/
export declare function addFacetIfNotPresent(store: Store<RootXStoreState>, facetId: Facet['id'], facetModelName: FacetModelName): void;
//# sourceMappingURL=add-facet-if-not-present.d.ts.map