Skip to content

Commit d1aa8e2

Browse files
authored
fix(type): correct RuleError type (#4893)
When changing SupportError to RuleError I missed the type file.
1 parent 32ed8da commit d1aa8e2

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

axe.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ declare namespace axe {
168168
nodes: NodeResult[];
169169
}
170170
interface IncompleteResult extends Result {
171-
error?: Omit<SupportError, 'errorNode'>;
171+
error?: Omit<RuleError, 'errorNode'>;
172172
}
173173
interface NodeResult {
174174
html: string;
@@ -207,7 +207,7 @@ declare namespace axe {
207207
fail: string | { [key: string]: string };
208208
incomplete?: string | { [key: string]: string };
209209
}
210-
interface SupportError {
210+
interface RuleError {
211211
name: string;
212212
message: string;
213213
stack: string;
@@ -479,12 +479,12 @@ declare namespace axe {
479479
isLabelledShadowDomSelector: (
480480
selector: unknown
481481
) => selector is LabelledShadowDomSelector;
482-
SupportError: (
483-
error: Error,
484-
ruleId?: string,
485-
method?: string,
486-
errorNode?: DqElement
487-
) => SupportError;
482+
RuleError: new (options: {
483+
error: Error;
484+
ruleId?: string;
485+
method?: string;
486+
errorNode?: DqElement;
487+
}) => RuleError;
488488
serializeError: (error: Error) => SerialError;
489489
DqElement: DqElementConstructor;
490490
uuid: (

0 commit comments

Comments
 (0)