@types/jest-axe
Advanced tools
Comparing version 3.2.2 to 3.5.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for jest-axe 3.2 | ||
// Type definitions for jest-axe 3.5 | ||
// Project: https://github.com/nickcolley/jest-axe | ||
@@ -10,4 +10,8 @@ // Definitions by: Josh Goldberg <https://github.com/JoshuaKGoldberg> | ||
import { AxeResults, Result, RunOnly } from 'axe-core'; | ||
import { AxeResults, Result, RunOptions, Spec } from 'axe-core'; | ||
export interface JestAxeConfigureOptions extends RunOptions { | ||
globalOptions?: Spec; | ||
} | ||
/** | ||
@@ -22,13 +26,2 @@ * Version of the aXe verifier with defaults set. | ||
/** | ||
* Core options to run aXe. | ||
*/ | ||
export interface AxeOptions { | ||
elementRef?: boolean; | ||
iframes?: boolean; | ||
rules?: object; | ||
runOnly?: RunOnly; | ||
selectors?: boolean; | ||
} | ||
/** | ||
* Runs aXe on HTML. | ||
@@ -40,3 +33,3 @@ * | ||
*/ | ||
export type JestAxe = (html: Element | string, options?: AxeOptions) => Promise<AxeResults>; | ||
export type JestAxe = (html: Element | string, options?: RunOptions) => Promise<AxeResults>; | ||
@@ -49,3 +42,3 @@ /** | ||
*/ | ||
export function configureAxe(options?: AxeOptions): JestAxe; | ||
export function configureAxe(options?: JestAxeConfigureOptions): JestAxe; | ||
@@ -52,0 +45,0 @@ /** |
{ | ||
"name": "@types/jest-axe", | ||
"version": "3.2.2", | ||
"version": "3.5.0", | ||
"description": "TypeScript definitions for jest-axe", | ||
@@ -28,6 +28,6 @@ "license": "MIT", | ||
"@types/jest": "*", | ||
"axe-core": "^3.0.3" | ||
"axe-core": "^3.5.5" | ||
}, | ||
"typesPublisherContentHash": "9cabf4e667f9e430e3d4ef43d1afe5c25f86efbd2f89c5b1c13cecd878c2cd21", | ||
"typesPublisherContentHash": "fe5cd0d6c06267180aba513b396a5ecce5d601d5466bb0100f8cdbf3262b22ad", | ||
"typeScriptVersion": "3.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 03 Apr 2020 20:57:13 GMT | ||
* Last updated: Mon, 20 Jul 2020 21:55:27 GMT | ||
* Dependencies: [@types/axe-core](https://npmjs.com/package/@types/axe-core), [@types/jest](https://npmjs.com/package/@types/jest) | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4808
69
Updatedaxe-core@^3.5.5