From 1642b637ee5cd1b76e078a2500b4fb21fc8265f1 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 8 Apr 2021 10:32:38 -0400 Subject: [PATCH] refactor: group up AnvilSharedStorage types --- striker-ui/types/AnvilSharedStorage.d.ts | 12 ++++++++++++ striker-ui/types/AnvilSharedStorageFileSystem.d.ts | 4 ---- striker-ui/types/AnvilSharedStorageNode.d.ts | 6 ------ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 striker-ui/types/AnvilSharedStorageFileSystem.d.ts delete mode 100644 striker-ui/types/AnvilSharedStorageNode.d.ts diff --git a/striker-ui/types/AnvilSharedStorage.d.ts b/striker-ui/types/AnvilSharedStorage.d.ts index 4ce52860..b7fca1d7 100644 --- a/striker-ui/types/AnvilSharedStorage.d.ts +++ b/striker-ui/types/AnvilSharedStorage.d.ts @@ -1,3 +1,15 @@ +declare type AnvilSharedStorageNode = { + is_mounted: boolean; + total: number; + free: number; + nodeInfo?: AnvilListItemNode; +}; + +declare type AnvilSharedStorageFileSystem = { + mountPoint: string; + nodes: Array; +}; + declare type AnvilSharedStorage = { file_systems: Array; }; diff --git a/striker-ui/types/AnvilSharedStorageFileSystem.d.ts b/striker-ui/types/AnvilSharedStorageFileSystem.d.ts deleted file mode 100644 index 835a5ba9..00000000 --- a/striker-ui/types/AnvilSharedStorageFileSystem.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare type AnvilSharedStorageFileSystem = { - mountPoint: string; - nodes: Array; -}; diff --git a/striker-ui/types/AnvilSharedStorageNode.d.ts b/striker-ui/types/AnvilSharedStorageNode.d.ts deleted file mode 100644 index dbaca5df..00000000 --- a/striker-ui/types/AnvilSharedStorageNode.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare type AnvilSharedStorageNode = { - is_mounted: boolean; - total: number; - free: number; - nodeInfo?: AnvilListItemNode; -};