From 3c4284c4f3a150ea7c25101a13d0de2eccc6c781 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 29 Mar 2021 15:34:25 -0400 Subject: [PATCH] fix: use the same data type for Anvil nodes --- striker-ui/types/AnvilListItem.d.ts | 4 +--- striker-ui/types/AnvilSharedStorageNode.d.ts | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/striker-ui/types/AnvilListItem.d.ts b/striker-ui/types/AnvilListItem.d.ts index 82e8ec8d..1270f1b2 100644 --- a/striker-ui/types/AnvilListItem.d.ts +++ b/striker-ui/types/AnvilListItem.d.ts @@ -2,7 +2,5 @@ declare type AnvilListItem = { anvil_name: string; anvil_uuid: string; anvil_state: string; - nodes: Array<{ - AnvilListItemNode; - }>; + nodes: Array; }; diff --git a/striker-ui/types/AnvilSharedStorageNode.d.ts b/striker-ui/types/AnvilSharedStorageNode.d.ts index 971f0692..dbaca5df 100644 --- a/striker-ui/types/AnvilSharedStorageNode.d.ts +++ b/striker-ui/types/AnvilSharedStorageNode.d.ts @@ -2,8 +2,5 @@ declare type AnvilSharedStorageNode = { is_mounted: boolean; total: number; free: number; - nodeInfo?: { - node_name: string; - node_uuid: string; - }; + nodeInfo?: AnvilListItemNode; };