From 51fa243b8727acffe6555db4c502e57b07158e3e Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Thu, 19 Aug 2021 17:05:53 -0700 Subject: [PATCH] Revert "Update x-pack/plugins/reporting/server/usage/decorate_range_stats.ts" This reverts commit 2704fe7fc8cac6ca84c0d117e7da40db0f87bb5f. --- .../plugins/reporting/server/usage/decorate_range_stats.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/reporting/server/usage/decorate_range_stats.ts b/x-pack/plugins/reporting/server/usage/decorate_range_stats.ts index be4de6d5fc647..99d4b7d934579 100644 --- a/x-pack/plugins/reporting/server/usage/decorate_range_stats.ts +++ b/x-pack/plugins/reporting/server/usage/decorate_range_stats.ts @@ -17,12 +17,12 @@ import { AvailableTotal, ExportType, FeatureAvailabilityMap, RangeStats } from ' const jobTypeIsDeprecated = (jobType: string) => DEPRECATED_JOB_TYPES.includes(jobType); -function getForFeature( +function getForFeature( range: Partial, typeKey: ExportType, featureAvailability: FeatureAvailabilityMap, - additional?: T -): AvailableTotal & T { + additional?: any +): AvailableTotal & typeof additional { const isAvailable = (feature: ExportType) => !!featureAvailability[feature]; const jobType = range[typeKey] || { total: 0, ...additional, deprecated: 0 };