[cypress-axe] update types for v0.4.0

This commit is contained in:
Justin Hall 2019-03-02 20:46:25 -07:00
parent 34116971d5
commit bebc13ea5b
2 changed files with 10 additions and 2 deletions

View File

@ -1,12 +1,14 @@
// Type definitions for cypress-axe 0.3
// Type definitions for cypress-axe 0.4
// Project: https://github.com/avanslaars/cypress-axe#readme
// Definitions by: Justin Hall <https://github.com/wKovacs64>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { ElementContext, RunOptions } from 'axe-core';
declare namespace Cypress {
interface Chainable<Subject = any> {
injectAxe(): void;
checkA11y(): void;
checkA11y(context?: ElementContext, options?: RunOptions): void;
configureAxe(options?: RunOptions): void;
}
}

View File

@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"axe-core": "^3.1.2"
}
}