File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/autocomplete-plugin-query-suggestions/src Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ import {
22 AutocompletePlugin ,
33 AutocompleteState ,
44} from '@algolia/autocomplete-core' ;
5- import {
6- getAlgoliaHits as defaultGetAlgoliaHits ,
7- SourceTemplates ,
8- } from '@algolia/autocomplete-js' ;
5+ import { getAlgoliaHits , SourceTemplates } from '@algolia/autocomplete-js' ;
96import { SearchOptions } from '@algolia/client-search' ;
107import { SearchClient } from 'algoliasearch/lite' ;
118
@@ -22,7 +19,6 @@ export type CreateQuerySuggestionsPluginParams<
2219 indexName : string ;
2320 getSearchParams ?( params : { state : AutocompleteState < TItem > } ) : SearchOptions ;
2421 getTemplates ?( params : GetTemplatesParams < TItem > ) : SourceTemplates < TItem > ;
25- getAlgoliaHits ?: typeof defaultGetAlgoliaHits ;
2622} ;
2723
2824export function createQuerySuggestionsPlugin <
@@ -32,7 +28,6 @@ export function createQuerySuggestionsPlugin<
3228 indexName,
3329 getSearchParams = ( ) => ( { } ) ,
3430 getTemplates = defaultGetTemplates ,
35- getAlgoliaHits = defaultGetAlgoliaHits ,
3631} : CreateQuerySuggestionsPluginParams < TItem > ) : AutocompletePlugin <
3732 TItem ,
3833 undefined
You can’t perform that action at this time.
0 commit comments