Skip to content

Commit d7184c9

Browse files
committed
refactor(types): add VNode to VNodeTypes
1 parent 9ee85a3 commit d7184c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/vnode.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const Static = Symbol(__DEV__ ? 'Static' : undefined)
4646

4747
export type VNodeTypes =
4848
| string
49+
| VNode
4950
| Component
5051
| typeof Text
5152
| typeof Static
@@ -290,7 +291,7 @@ export const createVNode = (__DEV__
290291
: _createVNode) as typeof _createVNode
291292

292293
function _createVNode(
293-
type: VNode | VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT,
294+
type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT,
294295
props: (Data & VNodeProps) | null = null,
295296
children: unknown = null,
296297
patchFlag: number = 0,

0 commit comments

Comments
 (0)