diff --git a/types/test/v3/tsx-test.tsx b/types/test/v3/tsx-test.tsx index 286c16997a..6a9dcce4fc 100644 --- a/types/test/v3/tsx-test.tsx +++ b/types/test/v3/tsx-test.tsx @@ -1,4 +1,4 @@ -import { VNode, defineComponent, ref } from '../../index' +import { VNode, defineComponent, ref, RenderContext } from '../../index' import { expectType } from '../utils' expectType(
) @@ -25,7 +25,13 @@ expectType(
) // allow Ref type type on arbitrary element const fooRef = ref() expectType(
) -expectType(
{fooRef.value = el as HTMLElement}} />) +expectType( +
{ + fooRef.value = el as HTMLElement + }} + /> +) expectType( ; - ;
+ +export default ({ data }: RenderContext) => { + return