Merge pull request #28259 from ClaasBrueggemann/add-facet-stats-types

[@types/algoliasearch] add missing types for facet_stats in algolia s…
This commit is contained in:
Daniel Rosenwasser
2018-08-22 13:13:24 -07:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -1776,6 +1776,14 @@ declare namespace algoliasearch {
facets?: {
[facetName: string]: { [facetValue: string]: number };
};
facets_stats?: {
[facetName: string]: {
avg: number,
max: number,
min: number,
sum: number,
};
};
}
interface MultiResponse {
+9
View File
@@ -4,6 +4,7 @@
// Haroen Viaene <https://github.com/haroenv>
// Aurélien Hervé <https://github.com/aherve>
// Samuel Vaillant <https://github.com/samouss>
// Claas Brüggemann <https://github.com/ClaasBrueggemann>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -570,6 +571,14 @@ declare namespace algoliasearch {
facets?: {
[facetName: string]: { [facetValue: string]: number };
};
facets_stats?: {
[facetName: string]: {
avg: number,
max: number,
min: number,
sum: number,
};
};
}
interface MultiResponse {