Skip to content

Commit

Permalink
fix(DocSearchProps): type searchParameters (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Dec 3, 2021
1 parent 92193df commit 80677fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docsearch-react/src/DocSearch.tsx
Expand Up @@ -2,6 +2,7 @@ import type {
AutocompleteState,
AutocompleteOptions,
} from '@algolia/autocomplete-core';
import type { SearchOptions } from '@algolia/client-search';
import type { SearchClient } from 'algoliasearch/lite';
import React from 'react';
import { createPortal } from 'react-dom';
Expand All @@ -27,7 +28,7 @@ export interface DocSearchProps {
apiKey: string;
indexName: string;
placeholder?: string;
searchParameters?: any;
searchParameters?: SearchOptions;
transformItems?: (items: DocSearchHit[]) => DocSearchHit[];
hitComponent?: (props: {
hit: InternalDocSearchHit | StoredDocSearchHit;
Expand Down

0 comments on commit 80677fd

Please sign in to comment.