From 3c6b64a2618bf0d35c228c9eebc0d4dfd1a82d32 Mon Sep 17 00:00:00 2001 From: restrry Date: Wed, 23 Feb 2022 10:45:49 +0100 Subject: [PATCH] fix the first batch of ts errors --- .../create_alert_history_index_template.ts | 1 - .../plugins/event_log/server/es/cluster_client_adapter.ts | 3 +-- x-pack/plugins/index_management/server/lib/fetch_indices.ts | 2 -- x-pack/plugins/license_management/server/lib/license.ts | 1 + .../reporting/server/routes/deprecations/deprecations.ts | 6 ++++-- .../plugins/snapshot_restore/server/routes/api/snapshots.ts | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts index bf3c4ff18e570..0a1c5037e7f8a 100644 --- a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts +++ b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts @@ -53,7 +53,6 @@ async function createIndexTemplate({ await client.indices.putIndexTemplate({ name: templateName, body: template, - // @ts-expect-error doesn't exist in @elastic/elasticsearch create: true, }); } catch (err) { diff --git a/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts b/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts index 010d162c62ea1..bb958c3ce2b54 100644 --- a/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts +++ b/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts @@ -178,7 +178,6 @@ export class ClusterClientAdapter