Versions Compared

Key

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

...

Code Block
languagetypescript
interface AutocompleteProductResult {
    id: string;
    title: string;
    sku?: string;
    imageUrl?: string;
    url: string;
    pinned: boolean;
    score: number;
    attributes?: {
        [key: string]: Array<string>;
    };
}

interface AutocompleteProducts {
    title: string;
    results: Array<AutocompleteProductResult>;
    totalRecords: number;
}

...

Query Results (Popular Searches)

Code Block
languagetypescript
interface AutocompleteQuery {
    query: string;
    url: string;
}

interface AutocompleteQueries {
    title: string;
    results: Array<AutocompleteQuery>;
}

...