Skip to content

Commit

Permalink
fix(d.ts): correct getFrameContexts return type (#3370)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored Feb 3, 2022
1 parent 30ebc27 commit a1b9611
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion axe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ declare namespace axe {
exclude?: Node | BaseSelector | Array<Node | BaseSelector | BaseSelector[]>;
};

type SerialContextObject = {
include?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
exclude?: BaseSelector | Array<BaseSelector | BaseSelector[]>;
};

type RunCallback = (error: Error, results: AxeResults) => void;

type ElementContext = Node | NodeList | string | ContextObject;
Expand Down Expand Up @@ -267,7 +272,7 @@ declare namespace axe {
type PartialResults = Array<PartialResult | null>;
interface FrameContext {
frameSelector: CrossTreeSelector;
frameContext: ContextObject;
frameContext: SerialContextObject;
}
interface Utils {
getFrameContexts: (
Expand Down

0 comments on commit a1b9611

Please sign in to comment.