Skip to content

Commit

Permalink
adjust types and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuffynism committed Oct 21, 2024
1 parent 649e834 commit a4eac92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import {
CommerceFacetOptions,
CoreCommerceFacet,
} from '../headless-core-commerce-facet.js';
import {LocationFacet} from '../location/headless-commerce-location-facet.js';
import {NumericFacet} from '../numeric/headless-commerce-numeric-facet.js';
import {RegularFacet} from '../regular/headless-commerce-regular-facet.js';
import {SearchableFacetOptions} from '../searchable/headless-commerce-searchable-facet.js';
import {LocationFacet} from '../location/headless-commerce-location-facet.js';

/**
* The `FacetGenerator` headless sub-controller creates commerce facet sub-controllers from the Commerce API search or
Expand All @@ -48,7 +48,7 @@ export interface FacetGenerator extends Controller {

/**
* The facet sub-controllers created by the facet generator.
* Array of [RegularFacet](./regular-facet), [DateRangeFacet](./date-range-facet), [NumericFacet](./numeric-facet), and [CategoryFacet](./category-facet).
* Array of [RegularFacet](./regular-facet), [DateRangeFacet](./date-range-facet), [NumericFacet](./numeric-facet), [CategoryFacet](./category-facet), and [LocationFacet](./location-facet).
*/
facets: GeneratedFacetControllers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export interface LocationFacetValue extends BaseFacetValue {
value: string;
}


export interface RangeFacetValue<T> extends BaseFacetValue {
start: T;
end: T;
Expand Down Expand Up @@ -80,6 +79,7 @@ export interface BaseFacetValue {

export type AnyFacetValueResponse =
| RegularFacetValue
| LocationFacetValue
| NumericFacetValue
| DateFacetValue
| CategoryFacetValue;
Expand Down

0 comments on commit a4eac92

Please sign in to comment.