diff --git a/axe.d.ts b/axe.d.ts index b162222619..cd78b82ca8 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -10,7 +10,7 @@ declare module axe { type ReporterVersion = "v1" | "v2"; - type RunOnlyType = "rule" | "rules" | "tag" | "tags"; + type RunOnlyType = "rule" | "rules" | "tag" | "tags"; type resultGroups = "inapplicable" | "passes" | "incomplete" | "violations"; @@ -19,13 +19,13 @@ declare module axe { exclude?: string[] | string[][] } - type RunCallback = (error: Error, results:AxeResults) => void; + type RunCallback = (error: Error, results: AxeResults) => void; type ElementContext = Node | string | RunOnlyObject; interface RunOnly { type: RunOnlyType, - values?: TagValue[] | RunOnlyObject + values?: TagValue[] | string[] } interface RunOptions { runOnly?: RunOnly, @@ -103,12 +103,12 @@ declare module axe { } interface AxePlugin { id: string, - run(...args:any[]): any, + run(...args: any[]): any, commands: { id: string, - callback(...args:any[]): void + callback(...args: any[]): void }[], - cleanup?(callback:Function): void + cleanup?(callback: Function): void } let plugins: any @@ -133,7 +133,7 @@ declare module axe { */ function run(context?: ElementContext): Promise function run(options: RunOptions): Promise - function run(callback: (error: Error, results:AxeResults) => void): void + function run(callback: (error: Error, results: AxeResults) => void): void function run(context: ElementContext, callback: RunCallback): void function run(options: RunOptions, callback: RunCallback): void function run(context: ElementContext, options: RunOptions): Promise