Skip to main content

Type Alias: TOnRuleErrorHandler

TOnRuleErrorHandler = (report) => void | Promise<void>

Defined in: internal/guardrails/types.ts:313

Called once per failed rule with everything the Guardrails know about it.

The handler of IGuardrailsConfig.onRuleError; the return value is ignored and a thrown error is logged, never felt by the check.

Parameters​

report​

IRuleErrorReport

Returns​

void | Promise<void>