correct payload type for monitor response
This commit is contained in:
1 parent
07a2f36dd7
commit
bfa11216f0
1 file changed
+10
-1
@@ -14,7 +14,16 @@ import type {
|
|||||||
MonitorStatus,
|
MonitorStatus,
|
||||||
} from "@/types/index.js";
|
} from "@/types/index.js";
|
||||||
|
|
||||||
export interface MonitorStatusResponse<T = any> {
|
export interface MonitorStatusResponse<
|
||||||
|
T =
|
||||||
|
| HttpStatusPayload
|
||||||
|
| PingStatusPayload
|
||||||
|
| PageSpeedStatusPayload
|
||||||
|
| HardwareStatusPayload
|
||||||
|
| DockerStatusPayload
|
||||||
|
| GameStatusPayload
|
||||||
|
| GrpcStatusPayload,
|
||||||
|
> {
|
||||||
monitorId: string;
|
monitorId: string;
|
||||||
teamId: string;
|
teamId: string;
|
||||||
type: MonitorType;
|
type: MonitorType;
|
||||||
|
|||||||
Reference in new issue
Block a user