fix: allow non-async callback functions in config types

pull/135/head
mst-mkt 2025-08-07 15:29:47 +09:00
parent 7079afb906
commit 7a3a6c1045
1 changed files with 2 additions and 2 deletions

View File

@ -63,14 +63,14 @@ export type Callbacks = {
timeIncidentStart: number,
timeNow: number,
reason: string
) => Promise<any>
) => Promise<any> | any
onIncident?: (
env: any,
monitor: any,
timeIncidentStart: number,
timeNow: number,
reason: string
) => Promise<any>
) => Promise<any> | any
}
export type MonitorState = {