-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(types): use a minimal type for transformSearchClient #2348
Conversation
✅ Deploy Preview for docsearch ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice
@@ -16,17 +15,23 @@ export type DocSearchTranslations = Partial<{ | |||
modal: ModalTranslations; | |||
}>; | |||
|
|||
export type DocSearchTransformClient = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export type DocSearchTransformClient = { | |
// The interface that describes the minimal implementation required for the algoliasearch client, when using the [`transformSearchClient`](https://docsearch.algolia.com/docs/api/#transformsearchclient) option | |
export type DocSearchTransformClient = { |
wdyt?
we also need to update the definition here https://docsearch.algolia.com/docs/api/#transformsearchclient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg!
The
transformSearchClient
type has change in the last release (#2326) and is breaking in some situation.To help with the migration, we can expose a new type that is the bare minimum needed by docsearch.