axe-core 4.12.0-canary.a7d8f3e → 4.12.1

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
@@ -352,7 +352,7 @@ declare namespace axe {
352
352
  helpUrl: string;
353
353
  tags: string[];
354
354
  actIds?: string[];
355
- enabled: boolean;
355
+ enabled?: boolean;
356
356
  }
357
357
  interface SerialDqElement {
358
358
  source: string;
@@ -623,7 +623,9 @@ declare namespace axe {
623
623
  * @param {Array} tags Optional array of tags
624
624
  * @return {Array} Array of rules
625
625
  */
626
- function getRules(tags?: string[]): RuleMetadata[];
626
+ function getRules(
627
+ tags?: string[]
628
+ ): (Omit<RuleMetadata, 'enabled'> & { enabled: boolean })[];
627
629
 
628
630
  /**
629
631
  * Restores the default axe configuration