Skip to content

Commit 571e984

Browse files
committed
fix: Correct runOnly object for TypeScript definition
1 parent a61ced6 commit 571e984

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

axe.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ declare module axe {
1212

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

15+
type RunOnlyObject = {
16+
include?: string[],
17+
exclude?: string[]
18+
}
19+
1520
type RunCallback = (error: Error, results:AxeResults) => void;
1621

1722
interface ElementContext {
@@ -22,11 +27,7 @@ declare module axe {
2227
}
2328
interface RunOnly {
2429
type: RunOnlyType,
25-
value?: {
26-
include?: string[],
27-
exclude?: string[]
28-
}
29-
values?: TagValue[]
30+
values?: TagValue[] | RunOnlyObject
3031
}
3132
interface RunOptions {
3233
runOnly?: RunOnly,

0 commit comments

Comments
 (0)