Closed
Description
We want to migrate to v4 from v5, but migrating even this snippet is problematic:
const object = await algoliasearch(algoliaApplicationId, algoliaApiKey)
.initIndex(productsAlgoliaIndex)
.getObjects<AlgoliaRecord>(productIds)
I see in source code that getObjects exist in v5 but one can't pass index and it's not in docs, and there's no index in types.
Also types are not straightforward (I get that it's generated but still), so rules like @typescript-eslint/no-unsafe-assignment fail because of any's in unions.
As well not sure how to proceed with now failing type checks for react instantsearch because things like:
hitsPerPage, analyticsTags on <Configure />
reference the types of v5 which do not have it.
Do you recommend to migrate now or wait till there will be a proper migration guide and types will be improved?