From a7a43c0e291c024f2533e29dd8b0dc249e552563 Mon Sep 17 00:00:00 2001 From: mst-mkt Date: Thu, 7 Aug 2025 15:32:10 +0900 Subject: [PATCH] fix: specify type of monitor argument in callback type --- types/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/config.ts b/types/config.ts index b015d1c..9300e9a 100644 --- a/types/config.ts +++ b/types/config.ts @@ -58,7 +58,7 @@ export type Notification = { export type Callbacks = { onStatusChange?: ( env: any, - monitor: any, + monitor: MonitorTarget, isUp: boolean, timeIncidentStart: number, timeNow: number, @@ -66,7 +66,7 @@ export type Callbacks = { ) => Promise | any onIncident?: ( env: any, - monitor: any, + monitor: MonitorTarget, timeIncidentStart: number, timeNow: number, reason: string