compiler.test-d.ts 464 B

1234567891011121314151617181920
  1. import {
  2. Comment,
  3. Fragment,
  4. Static,
  5. Suspense,
  6. Teleport,
  7. Text,
  8. type VNode,
  9. createBlock,
  10. defineComponent,
  11. } from 'vue'
  12. import { expectType } from './utils'
  13. expectType<VNode>(createBlock(Teleport))
  14. expectType<VNode>(createBlock(Text))
  15. expectType<VNode>(createBlock(Static))
  16. expectType<VNode>(createBlock(Comment))
  17. expectType<VNode>(createBlock(Fragment))
  18. expectType<VNode>(createBlock(Suspense))
  19. expectType<VNode>(createBlock(defineComponent({})))