algolia / algolia/autocomplete
SearchOptions and SearchClient doesn't exists
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 341
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 5
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used [patch-package](https://github.com/ds300/patch-package) to patch `@algolia/autocomplete-plugin-query-suggestions@1.19.2` for the project I'm working on.
I had an import problem since SearchOptions and SearchClient doesn't exists.
Here is the diff that solved my problem:
```diff
diff --git a/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/createQuerySuggestionsPlugin.d.ts b/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/createQuerySuggestionsPlugin.d.ts
index 6145477..7d5ddfc 100644
--- a/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/createQuerySuggestionsPlugin.d.ts
+++ b/node_modules/@algolia/autocomplete-plugin-query-suggestions/dist/esm/createQuerySuggestionsPlugin.d.ts
@@ -1,6 +1,6 @@
import { AutocompleteState, AutocompleteSource, AutocompletePlugin } from '@algolia/autocomplete-js';
-import { SearchOptions } from '@algolia/client-search';
-import { SearchClient } from 'algoliasearch/lite';
+import { SearchParams } from '@algolia/client-search';
+import { LiteClient } from 'algoliasearch/lite';
import { AutocompleteQuerySuggestionsHit, AutocompleteSuggestionsPluginTranslations, QuerySuggestionsHit } from './types';
export declare type CreateQuerySuggestionsPluginParams = {
/**
@@ -8,7 +8,7 @@ export declare type CreateQuerySuggestionsPluginParams;
- }): SearchOptions;
+ }): SearchParams;
/**
* A function to transform the provided source.
*
```
This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).
Contributor guide
Research direction
Start by inspecting the generated declaration at dist/esm/createQuerySuggestionsPlugin.d.ts and the package's build or type-generation entry point. Update the unavailable SearchOptions and SearchClient references consistently with the shown replacement types, then verify that the published declarations can be imported without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100