From 2f714050afe81bbade6beeb2c26a79ff5cbefb52 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Tue, 15 May 2018 22:38:53 -0700 Subject: [PATCH] chore(types): add resultTypes to typings add missing resultTypes to RunOptions. Fixes TS compilation on some projects. fixes #896 --- axe.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/axe.d.ts b/axe.d.ts index d8f3ae8fb3..e17ae3de0e 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -12,6 +12,8 @@ declare module axe { type RunOnlyType = "rule" | "rules" | "tag" | "tags"; + type resultGroups = "inapplicable" | "passes" | "incomplete" | "violations"; + type RunOnlyObject = { include?: string[] | string[][], exclude?: string[] | string[][] @@ -30,7 +32,8 @@ declare module axe { rules?: Object, iframes?: Boolean, elementRef?: Boolean, - selectors?: Boolean + selectors?: Boolean, + resultTypes?: resultGroups[], } interface AxeResults { url: string,