From 571e98492fa2abb013552a819be8004595433e1c Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Thu, 1 Mar 2018 20:19:58 +0100 Subject: [PATCH] fix: Correct runOnly object for TypeScript definition --- axe.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/axe.d.ts b/axe.d.ts index 09b3a218b2..931f6bc73d 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -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 { @@ -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,