From 4c5517be78705a74fb22401b36c882ac49f30b9c Mon Sep 17 00:00:00 2001 From: baiwusanyu-c Date: Thu, 5 Sep 2024 16:16:30 +0800 Subject: [PATCH 1/3] fix(typo): added name attribute support to details tag --- packages/runtime-dom/src/jsx.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/runtime-dom/src/jsx.ts b/packages/runtime-dom/src/jsx.ts index 4b67f16a97e..b3f0d097698 100644 --- a/packages/runtime-dom/src/jsx.ts +++ b/packages/runtime-dom/src/jsx.ts @@ -405,6 +405,7 @@ export interface DataHTMLAttributes extends HTMLAttributes { } export interface DetailsHTMLAttributes extends HTMLAttributes { + name?: string open?: Booleanish onToggle?: (payload: ToggleEvent) => void } From a91e48e6cf4a90f83d96c9a34397da573aa4b2f8 Mon Sep 17 00:00:00 2001 From: baiwusanyu-c Date: Thu, 5 Sep 2024 16:21:14 +0800 Subject: [PATCH 2/3] fix(typo): added test --- packages-private/dts-test/tsx.test-d.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages-private/dts-test/tsx.test-d.tsx b/packages-private/dts-test/tsx.test-d.tsx index 63945c0629b..97098070686 100644 --- a/packages-private/dts-test/tsx.test-d.tsx +++ b/packages-private/dts-test/tsx.test-d.tsx @@ -121,3 +121,5 @@ expectType( xmlns="http://www.w3.org/2000/svg" />, ) +// details +expectType(
) From 0426878c02325590e5606b07da6dba352ec26785 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:26:12 +0000 Subject: [PATCH 3/3] [autofix.ci] apply automated fixes --- packages-private/dts-test/tsx.test-d.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages-private/dts-test/tsx.test-d.tsx b/packages-private/dts-test/tsx.test-d.tsx index 97098070686..0cd380f0447 100644 --- a/packages-private/dts-test/tsx.test-d.tsx +++ b/packages-private/dts-test/tsx.test-d.tsx @@ -122,4 +122,4 @@ expectType( />, ) // details -expectType(
) +expectType(
)