2022-10-21 03:45:51 +08:00
|
|
|
import {
|
|
|
|
createBlock,
|
|
|
|
VNode,
|
|
|
|
Teleport,
|
|
|
|
Text,
|
|
|
|
Static,
|
|
|
|
Comment,
|
|
|
|
Fragment,
|
|
|
|
Suspense,
|
|
|
|
defineComponent
|
2023-02-03 21:41:33 +08:00
|
|
|
} from 'vue'
|
|
|
|
import { expectType } from './utils'
|
2022-10-21 03:45:51 +08:00
|
|
|
|
|
|
|
expectType<VNode>(createBlock(Teleport))
|
|
|
|
expectType<VNode>(createBlock(Text))
|
|
|
|
expectType<VNode>(createBlock(Static))
|
|
|
|
expectType<VNode>(createBlock(Comment))
|
|
|
|
expectType<VNode>(createBlock(Fragment))
|
|
|
|
expectType<VNode>(createBlock(Suspense))
|
|
|
|
expectType<VNode>(createBlock(defineComponent({})))
|