We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generic
1 parent 055cc5b commit df1f20dCopy full SHA for df1f20d
src/jsx.d.ts
@@ -1096,7 +1096,6 @@ export namespace JSXInternal {
1096
| 'feed'
1097
| 'figure'
1098
| 'form'
1099
- | 'generic'
1100
| 'grid'
1101
| 'gridcell'
1102
| 'group'
test/ts/dom-attributes-test.tsx
@@ -34,6 +34,10 @@ const signalValidAriaValues2 = (
34
);
35
36
const validRole = <div role="button" />;
37
+// @ts-expect-error We should correctly type aria roles
38
+const invalidRole = <div role="invalid-role" />;
39
+// @ts-expect-error We should disallow `generic` as it should not ever be explicitly set
40
+const invalidRole2 = <div role="generic" />;
41
const fallbackRole = <div role="none presentation" />;
42
43
const booleanishTest = (
0 commit comments