From d7d33ff2e0f36ff4d86666989c1e68d062c8b193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Sun, 8 Jun 2025 21:56:32 +0300 Subject: [PATCH] feat: add `formAssociated` flag to CustomElement --- schema.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/schema.d.ts b/schema.d.ts index edf3a21..0cc4498 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -259,6 +259,14 @@ export interface CustomElement extends ClassLike { * custom element class */ customElement: true; + + /** + * Distinguishes a form-associated custom element + * from a plain custom element. Form-associated custom + * elements can submit their values in a form when + * they have a `name` attribute. + */ + formAssociated?: boolean; } export interface Attribute {