Skip to content

Commit 67617fb

Browse files
committed
correct type
1 parent d0d4ae5 commit 67617fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/solutions/observability/plugins/observability/public/components/custom_threshold/custom_threshold_rule_expression.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ export const defaultExpression: MetricExpression = {
7979
const FILTER_TYPING_DEBOUNCE_MS = 500;
8080
const EMPTY_FILTERS: Filter[] = [];
8181

82-
// Helper function to convert time window to minutes
83-
const convertToMinutes = (timeWindowSize: number, timeWindowUnit: string): number => {
82+
const convertToMinutes = (timeWindowSize: number, timeWindowUnit: TimeUnitChar): number => {
8483
switch (timeWindowUnit) {
8584
case 's':
8685
return timeWindowSize / 60;

0 commit comments

Comments
 (0)