Skip to content

Commit 7b502ad

Browse files
committed
fix(specs): recommend is optional (generated)
algolia/api-clients-automation#3967 Co-authored-by: algolia-bot <[email protected]>
1 parent 4007b15 commit 7b502ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/algoliasearch/lite/model/recommendHit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ export type RecommendHit = Record<string, any> & {
3030
/**
3131
* Recommendation score.
3232
*/
33-
_score: number;
33+
_score?: number;
3434
};

packages/algoliasearch/lite/model/trendingFacetHit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type TrendingFacetHit = {
77
/**
88
* Recommendation score.
99
*/
10-
_score: number;
10+
_score?: number;
1111

1212
/**
1313
* Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.

packages/recommend/model/recommendHit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ export type RecommendHit = Record<string, any> & {
3030
/**
3131
* Recommendation score.
3232
*/
33-
_score: number;
33+
_score?: number;
3434
};

packages/recommend/model/trendingFacetHit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type TrendingFacetHit = {
77
/**
88
* Recommendation score.
99
*/
10-
_score: number;
10+
_score?: number;
1111

1212
/**
1313
* Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.

0 commit comments

Comments
 (0)