Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
nameSearchResultsItem
Code Block
languagetypescript
type SearchResultsItemType = 'content' | 'product';

Code Block
languagetypescript
interface SearchResultsItem {
    id: string;attributes?: {
        [key: pinnedstring]: booleanArray<string>;
    visible: boolean};
    scoredescription?: numberstring;
    typeid: SearchResultsItemTypestring;
    imageUrl?: string;
    titlepinned: stringboolean;
    urlprice?: stringnumber;
    pricesalePrice?: number;
    salePrice?score: number;
    attributes?title: {string;
    type: SearchResultsItemType;
    [keyurl: string]:;
Array<string>;    visible: }boolean;
}

Sorting

Excerpt
nameSorting
Code Block
languagetypescript
interface SortingOption {
    title: string;
    value: string;
    default: boolean;
    selected: boolean;
}

Code Block
languagetypescript
interface Sorting {
    value?: string;
    options: Array<SortingOption>;
}

...