@slash-tmp/rgaa-scraper
Version:
Scrapes RGAA's website and fetch topics, criteria and tests into a JSON format.
19 lines (18 loc) • 705 B
TypeScript
import RgaaTestWrapper from './RgaaTestWrapper';
import RgaaTopicWrapper from './RgaaTopicWrapper';
import { RgaaRootWrapper } from './RgaaRootWrapper';
import { RgaaCriterion, RgaaFilter, RgaaLevel, RgaaRawScraperResult, RgaaRawCriterion } from './types';
export default class RgaaCriterionWrapper extends RgaaRootWrapper implements RgaaCriterion {
id: string;
title: string;
references: {
wcag?: string[];
techniques?: string[];
};
particularCases?: string;
technicalNotes?: string;
level: RgaaLevel;
constructor(data: RgaaRawCriterion, root: RgaaRawScraperResult);
get topic(): RgaaTopicWrapper;
tests(filters?: RgaaFilter): RgaaTestWrapper[];
}