Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: update type

Pranshu Chittora3b3fd2b3a902
diff --git a/frontend/src/api/disks/getDisks.ts b/frontend/src/api/disks/getDisks.ts
index 70da1bddc9..9dced1b0fd 100644
--- a/frontend/src/api/disks/getDisks.ts
+++ b/frontend/src/api/disks/getDisks.ts
@@ -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`);
diff --git a/frontend/src/types/api/disks/getDisks.ts b/frontend/src/types/api/disks/getDisks.ts
index fc917db7d9..9e444df53d 100644
--- a/frontend/src/types/api/disks/getDisks.ts
+++ b/frontend/src/types/api/disks/getDisks.ts
@@ -1,3 +1,4 @@
+export type PayloadProps = IDiskType[];
export interface IDiskType {
name: string;
type: string;