From 7a3a6c1045b31e0249fd8c8629ffad8f418620ec Mon Sep 17 00:00:00 2001 From: mst-mkt Date: Thu, 7 Aug 2025 15:29:47 +0900 Subject: [PATCH] fix: allow non-async callback functions in config types --- types/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/config.ts b/types/config.ts index 2e7bfda..b015d1c 100644 --- a/types/config.ts +++ b/types/config.ts @@ -63,14 +63,14 @@ export type Callbacks = { timeIncidentStart: number, timeNow: number, reason: string - ) => Promise + ) => Promise | any onIncident?: ( env: any, monitor: any, timeIncidentStart: number, timeNow: number, reason: string - ) => Promise + ) => Promise | any } export type MonitorState = {