Skip to content

Commit

Permalink
fix(types): ensure createBlock() helper accepts Teleport and Supsense…
Browse files Browse the repository at this point in the history
… types

not their internal counterparts (TeleportImpl and SupenseImpl)

fix: #2855
  • Loading branch information
LinusBorg committed Feb 19, 2022
1 parent 5898629 commit a224a82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-core/src/vnode.ts
Expand Up @@ -24,14 +24,15 @@ import { RawSlots } from './componentSlots'
import { isProxy, Ref, toRaw, ReactiveFlags, isRef } from '@vue/reactivity'
import { AppContext } from './apiCreateApp'
import {
Suspense,
SuspenseImpl,
isSuspense,
SuspenseBoundary
} from './components/Suspense'
import { DirectiveBinding } from './directives'
import { TransitionHooks } from './components/BaseTransition'
import { warn } from './warning'
import { TeleportImpl, isTeleport } from './components/Teleport'
import { Teleport, TeleportImpl, isTeleport } from './components/Teleport'
import {
currentRenderingInstance,
currentScopeId
Expand Down Expand Up @@ -62,7 +63,9 @@ export type VNodeTypes =
| typeof Static
| typeof Comment
| typeof Fragment
| typeof Teleport
| typeof TeleportImpl
| typeof Suspense
| typeof SuspenseImpl

export type VNodeRef =
Expand Down

0 comments on commit a224a82

Please sign in to comment.