Skip to content

Commit c081d7a

Browse files
mchamwmcode
authored andcommitted
fix(types): export types
1 parent c5c17e7 commit c081d7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import {
44
consoleReporter,
55
isEmptyOrNullObject,
66
} from './utils';
7-
import type { CypressAxeOptions } from './types';
7+
import type { CypressAxeOptions, RunResults } from './types';
8+
9+
export { CypressAxeOptions, RunResults };
810

911
let defaultCypressAxeConfig = {
1012
axeOptions: {},

src/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import axe from 'axe-core';
22
import { injectAxe, configureAxe, configureCypressAxe } from '.';
3-
import { consoleReporter } from './utils'
43

54
declare global {
65
interface Window {
@@ -22,9 +21,9 @@ declare global {
2221

2322
export interface CypressAxeOptions {
2423
axeOptions?: axe.RunOptions;
25-
shouldFailFn?: (violations: axe.Result[]) => axe.Result[];
26-
violationsCallback?(): typeof consoleReporter;
24+
shouldFailFn?(violations: axe.Result[]): axe.Result[];
2725
skipFailures?: boolean;
26+
violationsCallback?(results: RunResults): void;
2827
}
2928

3029
export interface RunResults {

0 commit comments

Comments
 (0)