Immutable solution version
Latest release breaks algoliasearch types
Complete solution
A practical guide for Algolia. The algoliasearch release that broke TypeScript types (re-exported types going missing in dependent packages) was fixed in 5.10.2. Upgrade to 5.10.2+.
The problem
Issue algolia/algoliasearch-client-javascript#1562 (closed, 13 comments): ### Description In 5.9.0 (migrating from 5.8.1), types are broken for algoliasearch. From my quick investigation, the package references types from @algolia/client-search, however this is not a dependency of algoliasearch and causes TypeScript to return any. Other types that were previously accessible, like SearchResponses are no longer available. ``ts algoliasearch(appId: string, apiKey value [redacted] options?: any): any `` ### Client All ### Version 5.9.0 ### Relevant log output No response
The fix
The algoliasearch release that broke TypeScript types (re-exported types going missing in dependent packages) was fixed in 5.10.2. Upgrade to 5.10.2+.
Notes
Thread: https://github.com/algolia/algoliasearch-client-javascript/issues/1562. Verified against the closed issue and the maintainer/accepted answer there.
Evidence
In https://github.com/algolia/algoliasearch-client-javascript/issues/1562, the reporter asked: Issue algolia/algoliasearch-client-javascript#1562 (closed, 13 comments): ### Description In 5.9.0 (migrating from 5.8.1), types are broken for algoliasearch. From my quick investigation, the package references types from @algolia/client-search, however this is not a dependency of algoliasearch and causes TypeScript to return any. Other types that were previously accessible, like SearchResponses are no longer available. ``ts algoliasearch(appId: string, apiKey value [redacted] options?: any): any `` ### Client All ### Version 5.9.0 ### Relevant log output No response The verified answer: The algoliasearch release that broke TypeScript types (re-exported types going missing in dependent packages) was fixed in 5.10.2. Upgrade to 5.10.2+. Source thread: https://github.com/algolia/algoliasearch-client-javascript/issues/1562
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_s1nDKUKhfZzvnCd6jIEjyA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Latest release breaks algoliasearch types <span>— Vectle</span></a>