mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 13:25:54 +08:00
chore: update type
This commit is contained in:
parent
eae53d9eff
commit
3b3fd2b3a9
@ -2,10 +2,10 @@ import axios from 'api';
|
||||
import { ErrorResponseHandler } from 'api/ErrorResponseHandler';
|
||||
import { AxiosError } from 'axios';
|
||||
import { ErrorResponse, SuccessResponse } from 'types/api';
|
||||
import { IDiskType } from 'types/api/disks/getDisks';
|
||||
import { PayloadProps } from 'types/api/disks/getDisks';
|
||||
|
||||
const getDisks = async (): Promise<
|
||||
SuccessResponse<IDiskType[]> | ErrorResponse
|
||||
SuccessResponse<PayloadProps> | ErrorResponse
|
||||
> => {
|
||||
try {
|
||||
const response = await axios.get(`/disks`);
|
||||
|
@ -1,3 +1,4 @@
|
||||
export type PayloadProps = IDiskType[];
|
||||
export interface IDiskType {
|
||||
name: string;
|
||||
type: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user