Open Haroenv opened 2 years ago
Thanks! This is being worked on for Java and JavaScript here: https://github.com/algolia/api-clients-automation/pull/829
Should the hit be overridden by the generic ? like hits: T[]
and it's up to the user to extend its type with Hit
?
Should the hit be overridden by the generic ?
It should be type Hits<T> = Array<Hit<T>>
and type Hit<T = Record<string, any>> = T & { ...baseProps }
Okay so the generic logic will be exclusively for hits, it would be hard to make it work with other generic type
Is there a plan for Highlight and Snippet to be correct as well?
Not for now as we have other priorities, but if you have an implementation in mind feel free to contribute!
customer found this too: https://github.com/algolia/algoliasearch-client-javascript/issues/1534
Description
SnippetResults and HighlightResult should also be recursive as in v4