Skip to content

Commit 379f163

Browse files
authored
fix: Correctly type getMissingResultsUrl query as string (#1781)
1 parent af5d0fc commit 379f163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docsearch-react/src/DocSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface DocSearchProps {
4242
initialQuery?: string;
4343
navigator?: AutocompleteOptions<InternalDocSearchHit>['navigator'];
4444
translations?: DocSearchTranslations;
45-
getMissingResultsUrl?: ({ query: string }) => string;
45+
getMissingResultsUrl?: ({ query }: { query: string }) => string;
4646
}
4747

4848
export function DocSearch(props: DocSearchProps) {

0 commit comments

Comments
 (0)