fix: specify type of monitor argument in callback type
parent
7a3a6c1045
commit
a7a43c0e29
|
|
@ -58,7 +58,7 @@ export type Notification = {
|
||||||
export type Callbacks = {
|
export type Callbacks = {
|
||||||
onStatusChange?: (
|
onStatusChange?: (
|
||||||
env: any,
|
env: any,
|
||||||
monitor: any,
|
monitor: MonitorTarget,
|
||||||
isUp: boolean,
|
isUp: boolean,
|
||||||
timeIncidentStart: number,
|
timeIncidentStart: number,
|
||||||
timeNow: number,
|
timeNow: number,
|
||||||
|
|
@ -66,7 +66,7 @@ export type Callbacks = {
|
||||||
) => Promise<any> | any
|
) => Promise<any> | any
|
||||||
onIncident?: (
|
onIncident?: (
|
||||||
env: any,
|
env: any,
|
||||||
monitor: any,
|
monitor: MonitorTarget,
|
||||||
timeIncidentStart: number,
|
timeIncidentStart: number,
|
||||||
timeNow: number,
|
timeNow: number,
|
||||||
reason: string
|
reason: string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue