mirror of https://github.com/vuejs/core.git
Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
This commit is contained in:
parent
bc167b5c6c
commit
e5fc7dcc02
|
@ -24,6 +24,7 @@ import { RawSlots } from './componentSlots'
|
||||||
import { isProxy, Ref, toRaw, ReactiveFlags, isRef } from '@vue/reactivity'
|
import { isProxy, Ref, toRaw, ReactiveFlags, isRef } from '@vue/reactivity'
|
||||||
import { AppContext } from './apiCreateApp'
|
import { AppContext } from './apiCreateApp'
|
||||||
import {
|
import {
|
||||||
|
Suspense,
|
||||||
SuspenseImpl,
|
SuspenseImpl,
|
||||||
isSuspense,
|
isSuspense,
|
||||||
SuspenseBoundary
|
SuspenseBoundary
|
||||||
|
@ -31,7 +32,7 @@ import {
|
||||||
import { DirectiveBinding } from './directives'
|
import { DirectiveBinding } from './directives'
|
||||||
import { TransitionHooks } from './components/BaseTransition'
|
import { TransitionHooks } from './components/BaseTransition'
|
||||||
import { warn } from './warning'
|
import { warn } from './warning'
|
||||||
import { TeleportImpl, isTeleport } from './components/Teleport'
|
import { Teleport, TeleportImpl, isTeleport } from './components/Teleport'
|
||||||
import {
|
import {
|
||||||
currentRenderingInstance,
|
currentRenderingInstance,
|
||||||
currentScopeId
|
currentScopeId
|
||||||
|
@ -63,7 +64,9 @@ export type VNodeTypes =
|
||||||
| typeof Static
|
| typeof Static
|
||||||
| typeof Comment
|
| typeof Comment
|
||||||
| typeof Fragment
|
| typeof Fragment
|
||||||
|
| typeof Teleport
|
||||||
| typeof TeleportImpl
|
| typeof TeleportImpl
|
||||||
|
| typeof Suspense
|
||||||
| typeof SuspenseImpl
|
| typeof SuspenseImpl
|
||||||
|
|
||||||
export type VNodeRef =
|
export type VNodeRef =
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
import {
|
||||||
|
expectType,
|
||||||
|
createBlock,
|
||||||
|
VNode,
|
||||||
|
Teleport,
|
||||||
|
Text,
|
||||||
|
Static,
|
||||||
|
Comment,
|
||||||
|
Fragment,
|
||||||
|
Suspense,
|
||||||
|
defineComponent
|
||||||
|
} from './index'
|
||||||
|
|
||||||
|
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({})))
|
Loading…
Reference in New Issue