Skip to content

Commit

Permalink
Merge branch 'main' into support-react-19
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Jan 7, 2025
2 parents cfd33ae + df1f20d commit 5a5e24e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,6 @@ export namespace JSXInternal {
| 'feed'
| 'figure'
| 'form'
| 'generic'
| 'grid'
| 'gridcell'
| 'group'
Expand Down
4 changes: 4 additions & 0 deletions test/ts/dom-attributes-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ const signalValidAriaValues2 = (
);

const validRole = <div role="button" />;
// @ts-expect-error We should correctly type aria roles
const invalidRole = <div role="invalid-role" />;
// @ts-expect-error We should disallow `generic` as it should not ever be explicitly set
const invalidRole2 = <div role="generic" />;
const fallbackRole = <div role="none presentation" />;

const booleanishTest = (
Expand Down

0 comments on commit 5a5e24e

Please sign in to comment.