Skip to content

test: omit part from typings assertion to fix validate:types (24.4) - #410

Merged
web-padawan merged 1 commit into
24.4from
fix/24.4-typings-part
Oct 1, 2026
Merged

web-padawan merged 1 commit into
24.4from
fix/24.4-typings-part

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Description

@types/react 18.3.31 adds part?: string to HTMLAttributes. The React prop type keeps it as a string attribute, while HTMLElement.part is a DOMTokenList, so the props are no longer assignable to Partial<TextFieldElement>. Omit part alongside the other attributes whose DOM property type differs, matching the test on main.

Type of change

  • Test

@types/react 18.3.31 adds `part?: string` to `HTMLAttributes`. The React
prop type keeps it as a string attribute, while `HTMLElement.part` is a
`DOMTokenList`, so the props are no longer assignable to
`Partial<TextFieldElement>`. Omit `part` alongside the other attributes
whose DOM property type differs, matching the test on main.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@web-padawan
web-padawan removed the request for review from sissbruecker October 1, 2026 12:24
@web-padawan
web-padawan merged commit f943849 into 24.4 Oct 1, 2026
2 checks passed
@web-padawan
web-padawan deleted the fix/24.4-typings-part branch October 1, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants