mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #33551 from wKovacs64/cypress-axe
[cypress-axe] update types for v0.4.0
This commit is contained in:
Vendored
+14
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"axe-core": "^3.1.2"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-empty-interface": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user