Skip to content

Commit bfae9b2

Browse files
committed
types: fix createVNode dts generation
1 parent 0831b98 commit bfae9b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/runtime-core/src/vnode.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ const createVNodeWithArgsTransform = (
234234
)
235235
}
236236

237-
export const createVNode = __DEV__ ? createVNodeWithArgsTransform : _createVNode
237+
export const createVNode = (__DEV__
238+
? createVNodeWithArgsTransform
239+
: _createVNode) as typeof _createVNode
238240

239241
function _createVNode(
240242
type: VNodeTypes | ClassComponent,

0 commit comments

Comments
 (0)