Skip to content

Commit

Permalink
fix: Correctly type getMissingResultsUrl query as string (#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis authored Feb 6, 2023
1 parent af5d0fc commit 379f163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface DocSearchProps {
initialQuery?: string;
navigator?: AutocompleteOptions<InternalDocSearchHit>['navigator'];
translations?: DocSearchTranslations;
getMissingResultsUrl?: ({ query: string }) => string;
getMissingResultsUrl?: ({ query }: { query: string }) => string;
}

export function DocSearch(props: DocSearchProps) {
Expand Down

0 comments on commit 379f163

Please sign in to comment.