Function: validateMonitorFieldClientSide()
function validateMonitorFieldClientSide<TType, TField>(
type: TType,
fieldName: TField,
value: OptionalMonitorFieldValue<TType, TField>
): Promise<ValidationResult>;
Defined in: src/utils/monitorValidation.ts:101
Validate a specific monitor field for real-time feedback using shared schemas. Provides immediate validation without IPC round-trip.
Type Parametersโ
TTypeโ
TType extends
| "cdn-edge-consistency"
| "dns"
| "http"
| "http-header"
| "http-json"
| "http-keyword"
| "http-latency"
| "http-status"
| "ping"
| "port"
| "replication"
| "server-heartbeat"
| "ssl"
| "websocket-keepalive"
Monitor type under validation.
TFieldโ
TField extends string
Field identifier belonging to the monitor form.
Parametersโ
typeโ
TType
Monitor type.
fieldNameโ
TField
Field name to validate.
valueโ
OptionalMonitorFieldValue<TType, TField>
Field value to validate.
Returnsโ
Promise resolving to validation result.