Skip to main content

Interface: ThreatDetectionResult

Defined in: validators.ts:168 Outcome of detectThreatPatterns. isSafe is the boolean shortcut; threats is the full list of findings (one per detector that fired). Use getThreatErrorMessage to render a user-facing message for the first finding.

Properties

isSafe

isSafe: boolean
Defined in: validators.ts:170 true when no detectors fired. Equivalent to threats.length === 0.

threats

threats: ThreatFinding[]
Defined in: validators.ts:172 All findings produced by enabled detectors, in detector order.