@a11ied/contracts
v0.4.0
Published
Shared Zod schemas and result types. Internal package of a11ied, published because the a1 CLI depends on it. Its API can change in any release; install a11ied instead.
Readme
@a11ied/contracts
@a11ied/contracts is the shared schema and result-shape layer for the a11ied toolkit. It exports Zod schemas and inferred TypeScript types used across all a11ied packages.
internal package
This is an internal package of a11ied. It is published because a11ied depends on it, and its API can change in any release. Install a11ied instead.
usage
import {
AxeResultSchema,
DriverSessionSchema,
WcagCriterionSchema,
} from '@a11ied/contracts';All schemas are validated with zod. Infer types with z.infer<typeof Schema>.
scope
This package defines result shapes for:
- axe-core scan results
- driver session and action results
- WCAG criterion, level, and test method records
- relevance and query results
