fix(types/tsx): make JSX.Element extend VNode (#3171)

This commit is contained in:
Kael
2021-03-30 08:38:25 +11:00
committed by GitHub
parent d09045282c
commit 4f26835dac
4 changed files with 20 additions and 3 deletions

View File

@@ -5,9 +5,11 @@ import {
Fragment,
Teleport,
expectError,
expectType
expectType,
VNode
} from './index'
expectType<VNode>(<div />)
expectType<JSX.Element>(<div />)
expectType<JSX.Element>(<div id="foo" />)
expectType<JSX.Element>(<input value="foo" />)