fix: specify type of monitor argument in callback type

pull/135/head
mst-mkt 2025-08-07 15:32:10 +09:00
parent 7a3a6c1045
commit a7a43c0e29
1 changed files with 2 additions and 2 deletions

View File

@ -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> | any
onIncident?: (
env: any,
monitor: any,
monitor: MonitorTarget,
timeIncidentStart: number,
timeNow: number,
reason: string