Skip to content
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): correct type for SearchClient #1195

Merged
merged 1 commit into from Oct 2, 2023
Merged

fix(types): correct type for SearchClient #1195

merged 1 commit into from Oct 2, 2023

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Oct 2, 2023

Summary

in some cases this was inferred to any instead of the right type, after TS 5.1.3.

This fix was also done in the helper: algolia/algoliasearch-helper-js#943

this would have been caught if it was moved in the JS monorepo so the code could be in a shared package, or if we had updated to TS 5.1.3

Result

no any inferred for SearchClient type

in some cases this was inferred to `any` instead of the right type, after TS 5.1.3.

This fix was also done in the helper: algolia/algoliasearch-helper-js#943

this would have been caught if it was moved in the JS monorepo so the code could be in a shared package, or if we had updated to TS 5.1.3
@Haroenv Haroenv requested review from a team, sarahdayan, aymeric-giraudet and dhayab and removed request for a team and aymeric-giraudet October 2, 2023 08:29
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 2, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 30e7443:

Sandbox Source
@algolia/autocomplete-example-github-repositories-custom-plugin Configuration
@algolia/autocomplete-example-instantsearch Configuration
@algolia/autocomplete-example-playground Configuration
@algolia/autocomplete-example-preview-panel-in-modal Configuration
@algolia/autocomplete-example-react-renderer Configuration
@algolia/autocomplete-example-starter-algolia Configuration
@algolia/autocomplete-example-starter Configuration
@algolia/autocomplete-example-reshape Configuration
@algolia/autocomplete-example-vue Configuration

@Haroenv Haroenv merged commit a0228e4 into next Oct 2, 2023
9 checks passed
@Haroenv Haroenv deleted the fix/client-tyep branch October 2, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants