types: improve typing

This commit is contained in:
Evan You
2019-10-08 09:26:09 -04:00
parent 016231d09f
commit 1393ee52ca
8 changed files with 42 additions and 24 deletions

View File

@@ -13,7 +13,8 @@ import {
ComponentInternalInstance,
createComponentInstance,
setupStatefulComponent,
handleSetupResult
handleSetupResult,
Component
} from './component'
import {
renderComponentRoot,
@@ -1006,7 +1007,7 @@ export function createRenderer<
}
// resolve props and slots for setup context
const propsOptions = (initialVNode.type as any).props
const propsOptions = (initialVNode.type as Component).props
resolveProps(instance, initialVNode.props, propsOptions)
resolveSlots(instance, initialVNode.children)