From f228c1178fbb55867014d43db8f9049cff4a4047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Tue, 24 Nov 2020 12:35:08 +0100 Subject: [PATCH] fix(react): make `navigator` optional --- packages/docsearch-react/src/DocSearch.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docsearch-react/src/DocSearch.tsx b/packages/docsearch-react/src/DocSearch.tsx index a5ddd4983..b1485bf32 100644 --- a/packages/docsearch-react/src/DocSearch.tsx +++ b/packages/docsearch-react/src/DocSearch.tsx @@ -15,8 +15,7 @@ import { } from './types'; import { useDocSearchKeyboardEvents } from './useDocSearchKeyboardEvents'; -export interface DocSearchProps - extends Pick, '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['navigator']; } export function DocSearch(props: DocSearchProps) {