Function: validateMonitorType()
validateMonitorType(
type
:unknown
): type is "http" | "port" | "ping" | "dns"
Defined in: shared/utils/validation.ts:29
Validates monitor type.
Parametersโ
typeโ
unknown
Value to check as monitor type
Returnsโ
type is "http" | "port" | "ping" | "dns"
Type predicate indicating if the value is a valid MonitorType
Remarksโ
Supports all monitor types: HTTP, port, ping, and DNS monitors.