types: fix createVNode dts generation

This commit is contained in:
Evan You 2020-03-23 17:36:19 -04:00
parent 0831b98eac
commit bfae9b2e55

View File

@ -234,7 +234,9 @@ const createVNodeWithArgsTransform = (
)
}
export const createVNode = __DEV__ ? createVNodeWithArgsTransform : _createVNode
export const createVNode = (__DEV__
? createVNodeWithArgsTransform
: _createVNode) as typeof _createVNode
function _createVNode(
type: VNodeTypes | ClassComponent,