diff --git a/packages/dts-test/tsx.test-d.tsx b/packages/dts-test/tsx.test-d.tsx index 04915a9673f..47555a03c0b 100644 --- a/packages/dts-test/tsx.test-d.tsx +++ b/packages/dts-test/tsx.test-d.tsx @@ -17,6 +17,33 @@ expectType(
) +// #7955 +expectType( +
+) + +expectType( +
+) + +expectType( +
+) + +expectType( +
+) + +expectType( +
+) + +// @ts-expect-error +;
+ +// @ts-expect-error +;
+ // @ts-expect-error unknown prop ;
diff --git a/packages/runtime-dom/src/jsx.ts b/packages/runtime-dom/src/jsx.ts index d103278c6e6..cc54d09091c 100644 --- a/packages/runtime-dom/src/jsx.ts +++ b/packages/runtime-dom/src/jsx.ts @@ -234,7 +234,7 @@ interface AriaAttributes { } // Vue's style normalization supports nested arrays -export type StyleValue = string | CSSProperties | Array +export type StyleValue = false | null | undefined | string | CSSProperties | Array export interface HTMLAttributes extends AriaAttributes, EventHandlers { innerHTML?: string