fix: allow non-async callback functions in config types
parent
7079afb906
commit
7a3a6c1045
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue