hpcompaq435/accessaudit-scanner
0
1export type Impact = "critical" | "serious" | "moderate" | "minor";2 3export interface ViolationNode {4 /** CSS selector path to the failing element */5 target: string;6 /** The element's outer HTML (truncated by axe) */7 html: string;8 /** Human-readable reason this node failed */9 failureSummary: string;10}11 12export interface ScannedViolation {13 /** axe rule id, e.g. "image-alt" */14 id: string;15 impact: Impact;16 /** What the rule checks */17 description: string;18 /** Short fix hint from axe */19 help: string;20 /** Link to axe's detailed explanation */21 helpUrl: string;22 /** Only the WCAG-related tags, e.g. ["wcag2a","wcag111"] */23 wcagTags: string[];24 /** Total failing elements found for this rule */25 nodeCount: number;26 /** Up to 10 example failing elements */27 nodes: ViolationNode[];28}29 30export interface ScanSummary {31 critical: number;32 serious: number;33 moderate: number;34 minor: number;35 total: number;36}37 38export interface ScanResult {39 url: string;40 /** ISO timestamp */41 scannedAt: string;42 /** 0–100 transparent accessibility score */43 score: number;44 summary: ScanSummary;45 violations: ScannedViolation[];46}47 