File tree 2 files changed +12
-2
lines changed
packages/autocomplete-shared/src
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- import type { FacetHit , Hit } from '@algolia/client-search' ;
1
+ import type { Hit } from '@algolia/client-search' ;
2
2
3
3
import type { MaybePromise } from '../MaybePromise' ;
4
- import type { SearchForFacetValuesResponse } from '../preset-algolia/algoliasearch' ;
4
+ import type {
5
+ FacetHit ,
6
+ SearchForFacetValuesResponse ,
7
+ } from '../preset-algolia/algoliasearch' ;
5
8
import type { RequesterDescription } from '../preset-algolia/createRequester' ;
6
9
import type { SearchResponse } from '../SearchResponse' ;
7
10
Original file line number Diff line number Diff line change @@ -71,3 +71,10 @@ export type SnippetResult<THit> = PickForClient<{
71
71
/** @ts -ignore */
72
72
v5 : AlgoliaSearch . SnippetResult ; // should be generic, but isn't yet in the client
73
73
} > ;
74
+
75
+ export type FacetHit = PickForClient < {
76
+ /** @ts -ignore */
77
+ v4 : ClientSearch . FacetHit ;
78
+ /** @ts -ignore */
79
+ v5 : AlgoliaSearch . FacetHits ;
80
+ } > ;
You can’t perform that action at this time.
0 commit comments