diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index 7b9d625cff7..77216de6a87 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -1334,6 +1334,7 @@ declare global { // @ts-ignore supress ts:2374 = Duplicate string index signature. [name: string]: any } + interface IntrinsicAttributes extends ReservedProps {} } } diff --git a/test-dts/functionalComponent.test-d.tsx b/test-dts/functionalComponent.test-d.tsx index ea6e1b601b6..6783fed61c2 100644 --- a/test-dts/functionalComponent.test-d.tsx +++ b/test-dts/functionalComponent.test-d.tsx @@ -5,6 +5,8 @@ const Foo = (props: { foo: number }) => props.foo // TSX expectType() +expectType() +expectType() // @ts-expect-error expectError() // @ts-expect-error