Skip to content

Commit

Permalink
fix: Correct runOnly object for TypeScript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Mar 1, 2018
1 parent a61ced6 commit 571e984
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions axe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ declare module axe {

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

type RunOnlyObject = {
include?: string[],
exclude?: string[]
}

type RunCallback = (error: Error, results:AxeResults) => void;

interface ElementContext {
Expand All @@ -22,11 +27,7 @@ declare module axe {
}
interface RunOnly {
type: RunOnlyType,
value?: {
include?: string[],
exclude?: string[]
}
values?: TagValue[]
values?: TagValue[] | RunOnlyObject
}
interface RunOptions {
runOnly?: RunOnly,
Expand Down

0 comments on commit 571e984

Please sign in to comment.