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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
464 B
TypeScript
Raw Permalink Normal View History

import {
Comment,
Fragment,
Static,
Suspense,
Teleport,
Text,
type VNode,
createBlock,
defineComponent,
2023-02-03 21:41:33 +08:00
} 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({})))