fix(react): make navigator optional
This commit is contained in:
parent
f5947a98cd
commit
f228c1178f
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,7 @@ import {
|
|||
} from './types';
|
||||
import { useDocSearchKeyboardEvents } from './useDocSearchKeyboardEvents';
|
||||
|
||||
export interface DocSearchProps
|
||||
extends Pick<AutocompleteOptions<InternalDocSearchHit>, 'navigator'> {
|
||||
export interface DocSearchProps {
|
||||
appId?: string;
|
||||
apiKey: string;
|
||||
indexName: string;
|
||||
|
|
@ -33,6 +32,7 @@ export interface DocSearchProps
|
|||
transformSearchClient?(searchClient: SearchClient): SearchClient;
|
||||
disableUserPersonalization?: boolean;
|
||||
initialQuery?: string;
|
||||
navigator?: AutocompleteOptions<InternalDocSearchHit>['navigator'];
|
||||
}
|
||||
|
||||
export function DocSearch(props: DocSearchProps) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue