axe-core 4.3.5-canary.f33c99f → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/axe.d.ts CHANGED
@@ -50,8 +50,8 @@ declare namespace axe {
50
50
  type CrossFrameSelector = CrossTreeSelector[];
51
51
 
52
52
  type ContextObject = {
53
- include?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
54
- exclude?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
53
+ include?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
54
+ exclude?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
55
55
  };
56
56
 
57
57
  type RunCallback = (error: Error, results: AxeResults) => void;
@@ -264,13 +264,16 @@ declare namespace axe {
264
264
  results: PartialRuleResult[];
265
265
  environmentData?: EnvironmentData;
266
266
  }
267
- type PartialResults = Array<PartialResult | null>
267
+ type PartialResults = Array<PartialResult | null>;
268
268
  interface FrameContext {
269
269
  frameSelector: CrossTreeSelector;
270
270
  frameContext: ContextObject;
271
271
  }
272
272
  interface Utils {
273
- getFrameContexts: (context?: ElementContext, options?: RunOptions) => FrameContext[];
273
+ getFrameContexts: (
274
+ context?: ElementContext,
275
+ options?: RunOptions
276
+ ) => FrameContext[];
274
277
  shadowSelect: (selector: CrossTreeSelector) => Element | null;
275
278
  }
276
279
  interface EnvironmentData {