vue3-core/packages/dts-test/compiler.test-d.ts

21 lines
458 B
TypeScript

import {
createBlock,
VNode,
Teleport,
Text,
Static,
Comment,
Fragment,
Suspense,
defineComponent
} from 'vue'
import { expectType } from './utils'
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({})))