intern-a11y
Version:
Intern-a11y. An accessibility testing helper for Intern.
35 lines (34 loc) • 746 B
TypeScript
import { A11yResults } from '../common';
export interface AxeCheck {
id: string;
impact: string;
message: string;
data: string;
relatedNodes: {
target: string[];
html: string;
}[];
}
export interface AxeResult {
description: string;
help: string;
helpUrl: string;
id: string;
impact: string;
tags: string[];
nodes: {
html: string;
impact: string;
target: string[];
any: AxeCheck[];
all: AxeCheck[];
none: AxeCheck[];
}[];
}
export interface AxeResults {
url: string;
timestamp: string;
passes: AxeResult[];
violations: AxeResult[];
}
export declare function toA11yResults(axeResults: AxeResults): A11yResults;