There was an error while loading. Please reload this page.
type
facet
1 parent 3aec216 commit 54c1cb7Copy full SHA for 54c1cb7
packages/client-search/src/types/MultipleQueriesQuery.ts
@@ -1,6 +1,13 @@
1
import { SearchOptions } from '.';
2
3
-export type MultipleQueriesQuery = {
+type SharedMultipleQueriesQuery = {
4
+ /**
5
+ * The type of query to perform.
6
+ *
7
+ * @defaultValue "default"
8
+ */
9
+ readonly type?: 'default' | 'facet';
10
+
11
/**
12
* The index name.
13
*/
@@ -16,3 +23,17 @@ export type MultipleQueriesQuery = {
16
23
17
24
readonly query?: string;
18
25
};
26
27
+export type MultipleQueriesQuery = SharedMultipleQueriesQuery &
28
+ (
29
+ | {
30
+ readonly type?: 'default';
31
+ }
32
33
+ readonly type: 'facet';
34
35
+ * The facet name.
36
37
+ readonly facet: string;
38
39
+ );
0 commit comments