refactor: group up AnvilList types

main
Josue 4 years ago committed by Tsu-ba-me
parent 6abdfcc9a7
commit 5f2ca07549
  1. 12
      striker-ui/types/AnvilList.d.ts
  2. 6
      striker-ui/types/AnvilListItem.d.ts
  3. 4
      striker-ui/types/AnvilListItemNode.d.ts

@ -1,3 +1,15 @@
declare type AnvilListItemNode = {
node_name: string;
node_uuid: string;
};
declare type AnvilListItem = {
anvil_name: string;
anvil_uuid: string;
anvil_state: string;
nodes: Array<AnvilListItemNode>;
};
declare type AnvilList = { declare type AnvilList = {
anvils: Array<AnvilListItem>; anvils: Array<AnvilListItem>;
}; };

@ -1,6 +0,0 @@
declare type AnvilListItem = {
anvil_name: string;
anvil_uuid: string;
anvil_state: string;
nodes: Array<AnvilListItemNode>;
};

@ -1,4 +0,0 @@
declare type AnvilListItemNode = {
node_name: string;
node_uuid: string;
};
Loading…
Cancel
Save