Skip to content

Commit 93d5453

Browse files
fix(specs): remove fields requirement from run response in CompAPI client (generated)
algolia/api-clients-automation#5809 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clara Muller <5667350+ClaraMuller@users.noreply.github.com>
1 parent a0dca1a commit 93d5453

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/composition/model/searchFields.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,35 @@ export type SearchFields<T = Record<string, unknown>> = {
66
/**
77
* Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting.
88
*/
9-
hits: Hit<T>[];
9+
hits?: Hit<T>[] | undefined;
1010

1111
/**
1212
* Number of hits returned per page.
1313
*/
14-
hitsPerPage: number;
14+
hitsPerPage?: number | undefined;
1515

1616
/**
1717
* Number of results (hits).
1818
*/
19-
nbHits: number;
19+
nbHits?: number | undefined;
2020

2121
/**
2222
* Number of pages of results.
2323
*/
24-
nbPages: number;
24+
nbPages?: number | undefined;
2525

2626
/**
2727
* The current page of the results.
2828
*/
29-
page: number;
29+
page?: number | undefined;
3030

3131
/**
3232
* URL-encoded string of all search parameters.
3333
*/
34-
params: string;
34+
params?: string | undefined;
3535

3636
/**
3737
* The search query string.
3838
*/
39-
query: string;
39+
query?: string | undefined;
4040
};

0 commit comments

Comments
 (0)