We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee85a3 commit d7184c9Copy full SHA for d7184c9
packages/runtime-core/src/vnode.ts
@@ -46,6 +46,7 @@ export const Static = Symbol(__DEV__ ? 'Static' : undefined)
46
47
export type VNodeTypes =
48
| string
49
+ | VNode
50
| Component
51
| typeof Text
52
| typeof Static
@@ -290,7 +291,7 @@ export const createVNode = (__DEV__
290
291
: _createVNode) as typeof _createVNode
292
293
function _createVNode(
- type: VNode | VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT,
294
+ type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT,
295
props: (Data & VNodeProps) | null = null,
296
children: unknown = null,
297
patchFlag: number = 0,
0 commit comments