Merge pull request #33551 from wKovacs64/cypress-axe

[cypress-axe] update types for v0.4.0
This commit is contained in:
Nathan Shively-Sanders
2019-03-04 10:41:11 -08:00
committed by GitHub
3 changed files with 26 additions and 6 deletions
+14 -5
View File
@@ -1,12 +1,21 @@
// 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
declare namespace Cypress {
interface Chainable<Subject = any> {
injectAxe(): void;
checkA11y(): void;
import { ElementContext, RunOptions } from 'axe-core';
declare module 'axe-core' {
interface Node {}
}
declare global {
namespace Cypress {
interface Chainable<Subject = any> {
injectAxe(): void;
checkA11y(context?: ElementContext, options?: RunOptions): void;
configureAxe(options?: RunOptions): void;
}
}
}
+6
View File
@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"axe-core": "^3.1.2"
}
}
+6 -1
View File
@@ -1 +1,6 @@
{ "extends": "dtslint/dt.json" }
{
"extends": "dtslint/dt.json",
"rules": {
"no-empty-interface": false
}
}