From cd79d24797b1910937b10da091ef61f8a307975b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20K=C3=B6nig?= Date: Mon, 9 Dec 2024 11:26:09 +0100 Subject: [PATCH] fix typescript issue --- src/components/shards/IndexShards.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/shards/IndexShards.vue b/src/components/shards/IndexShards.vue index 6d564a41..c839cf06 100644 --- a/src/components/shards/IndexShards.vue +++ b/src/components/shards/IndexShards.vue @@ -33,8 +33,14 @@ const { requestState, callElasticsearch } = useElasticsearchAdapter() const health = ref(null) + type CatIndicesArgs = { + h: string[], + s: string[], + health?: string + } + const load = async () => { - let catIndicesArgs = { h: ['index', 'health', 'pri', 'rep', 'status'], s: ['health:desc', 'index'] } + let catIndicesArgs: CatIndicesArgs = { h: ['index', 'health', 'pri', 'rep', 'status'], s: ['health:desc', 'index'] } if (health.value) catIndicesArgs['health'] = health.value