From a80cfe17ae6f3b0669df6be5aaff7aae04319752 Mon Sep 17 00:00:00 2001 From: Mike Cote Date: Mon, 15 Jan 2024 11:13:24 -0500 Subject: [PATCH] Fix typecheck errors --- .../custom_threshold/register_custom_threshold_rule_type.ts | 2 +- .../observability/server/lib/rules/slo_burn_rate/register.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/observability/server/lib/rules/custom_threshold/register_custom_threshold_rule_type.ts b/x-pack/plugins/observability/server/lib/rules/custom_threshold/register_custom_threshold_rule_type.ts index 6952ba9ce7eb..f0e0ede0945c 100644 --- a/x-pack/plugins/observability/server/lib/rules/custom_threshold/register_custom_threshold_rule_type.ts +++ b/x-pack/plugins/observability/server/lib/rules/custom_threshold/register_custom_threshold_rule_type.ts @@ -127,7 +127,7 @@ export function thresholdRuleType( }, schemas: { params: { - type: 'config-schema', + type: 'config-schema' as const, schema: paramsSchema, }, }, diff --git a/x-pack/plugins/observability/server/lib/rules/slo_burn_rate/register.ts b/x-pack/plugins/observability/server/lib/rules/slo_burn_rate/register.ts index 497e0b427f34..f70dc3721cb2 100644 --- a/x-pack/plugins/observability/server/lib/rules/slo_burn_rate/register.ts +++ b/x-pack/plugins/observability/server/lib/rules/slo_burn_rate/register.ts @@ -65,7 +65,7 @@ export function sloBurnRateRuleType( }, schemas: { params: { - type: 'config-schema', + type: 'config-schema' as const, schema: paramsSchema, }, },