Skip to content

Commit

Permalink
fix(types): add new properties to RunOptions (#1697)
Browse files Browse the repository at this point in the history
Added new properties to RunOptions interface that are specified in documentation: https://www.deque.com/axe/axe-for-web/documentation/api-documentation/#options-parameter

    Closes #1696
  • Loading branch information
frontned authored and straker committed Jul 12, 2019
1 parent 0f19c04 commit 02aa36c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion axe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare namespace axe {

type TagValue = 'wcag2a' | 'wcag2aa' | 'section508' | 'best-practice';

type ReporterVersion = 'v1' | 'v2';
type ReporterVersion = 'v1' | 'v2' | 'raw' | 'raw-env' | 'no-passes';

type RunOnlyType = 'rule' | 'rules' | 'tag' | 'tags';

Expand Down Expand Up @@ -47,6 +47,13 @@ declare namespace axe {
elementRef?: boolean;
selectors?: boolean;
resultTypes?: resultGroups[];
reporter?: ReporterVersion;
xpath?: boolean;
absolutePaths?: boolean;
restoreScroll?: boolean;
frameWaitTime?: number;
preload?: boolean;
performanceTimer?: boolean;
}
interface AxeResults {
toolOptions: RunOptions;
Expand Down

0 comments on commit 02aa36c

Please sign in to comment.