diff --git a/axe.d.ts b/axe.d.ts index 403e504873..514e77b365 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -7,7 +7,7 @@ declare namespace axe { type TagValue = string; - type ReporterVersion = 'v1' | 'v2' | 'raw' | 'raw-env' | 'no-passes'; + type ReporterVersion = 'v1' | 'v2' | 'raw' | 'rawEnv' | 'no-passes'; type RunOnlyType = 'rule' | 'rules' | 'tag' | 'tags'; @@ -132,7 +132,7 @@ declare namespace axe { interface RunOptions { runOnly?: RunOnly | TagValue[] | string[] | string; rules?: RuleObject; - reporter?: ReporterVersion; + reporter?: ReporterVersion | string; resultTypes?: resultGroups[]; selectors?: boolean; ancestry?: boolean; diff --git a/typings/axe-core/axe-core-tests.ts b/typings/axe-core/axe-core-tests.ts index bff4ec46da..e21579d129 100644 --- a/typings/axe-core/axe-core-tests.ts +++ b/typings/axe-core/axe-core-tests.ts @@ -2,7 +2,13 @@ import * as axe from '../../axe'; var context: any = document; var $fixture = [document]; -var options = { iframes: false, selectors: false, elementRef: false }; +var options: axe.RunOptions = { + iframes: false, + selectors: false, + elementRef: false +}; +options.reporter = 'rawEnv'; +options.reporter = 'custom'; axe.run(context, {}, (error: Error, results: axe.AxeResults) => { if (error) {