feat: add types and return types for Anvils and CPU

main
Josue 4 years ago committed by Tsu-ba-me
parent e0fbeab876
commit ce9135c5af
  1. 5
      striker-ui/types/AnvilCPU.d.ts
  2. 2
      striker-ui/types/AnvilList.d.ts
  3. 7
      striker-ui/types/AnvilListItem.d.ts
  4. 1
      striker-ui/types/AnvilTypes.d.ts
  5. 5
      striker-ui/types/GetResponse.d.ts

@ -0,0 +1,5 @@
declare type AnvilCPU = {
cores: number;
threads: number;
allocated: number;
};

@ -1,3 +1,3 @@
declare type AnvilList = { declare type AnvilList = {
anvils: AnvilListItem[]; anvils: Array<AnvilListItem>;
}; };

@ -1,3 +1,8 @@
declare type AnvilListItem = { declare type AnvilListItem = {
uuid: string; anvil_name: string;
anvil_uuid: string;
nodes: Array<{
node_name: string;
node_uuid: string;
}>;
}; };

@ -0,0 +1 @@
declare type AnvilTypes = AnvilList | AnvilCPU;

@ -0,0 +1,5 @@
declare type GetResponses = {
data: T;
isLoading: boolean;
isError: Error;
};
Loading…
Cancel
Save