From 5d98a043d8bcda3a3fe032dd8205c9256c481631 Mon Sep 17 00:00:00 2001 From: Stephen Mathieson Date: Wed, 24 Jun 2020 11:05:23 -0400 Subject: [PATCH] fix(types): Make any tag allowed (#2314) Tags (especially in custom rules) can be any string. Hard-coding this list prevents the ability to use custom tags. This patch has the unfortunate side-effect of preventing intellisense in TypeScript-enabled editors, but provides more "technically correct" types. Related #2312 --- axe.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axe.d.ts b/axe.d.ts index d6f55278a0..26e4f2f247 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -5,7 +5,7 @@ declare namespace axe { type ImpactValue = 'minor' | 'moderate' | 'serious' | 'critical' | null; - type TagValue = 'wcag2a' | 'wcag2aa' | 'section508' | 'best-practice' | 'wcag21a' | 'wcag21aa'; + type TagValue = string; type ReporterVersion = 'v1' | 'v2' | 'raw' | 'raw-env' | 'no-passes';