From 0883a88de1b11ebd818257967a1eff0304a4c6a4 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Thu, 1 Oct 2026 15:10:50 +0300 Subject: [PATCH] test: omit part from typings assertion to fix validate:types @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`. Omit `part` alongside the other attributes whose DOM property type differs, matching the test on main. Co-Authored-By: Claude Fable 5.1 --- test/typings/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/typings/api.ts b/test/typings/api.ts index 163b3912..6c10a2fc 100644 --- a/test/typings/api.ts +++ b/test/typings/api.ts @@ -52,7 +52,7 @@ type TextFieldProps = typeof textFieldProps; type PartialTextFieldElement = Omit< Partial, - 'draggable' | 'style' | 'translate' | 'children' | 'contentEditable' + 'draggable' | 'style' | 'translate' | 'children' | 'contentEditable' | 'part' >; assertType(textFieldProps);