types: improve slots type (#366)

This commit is contained in:
likui 2019-10-23 21:29:09 +08:00 committed by Evan You
parent fad691de9d
commit e34d2bd853

View File

@ -10,6 +10,7 @@ import {
} from './apiOptions'
import { UnwrapRef, ReactiveEffect } from '@vue/reactivity'
import { warn } from './warning'
import { Slots } from './componentSlots'
// public properties exposed on the proxy, which is used as the render context
// in templates (as `this` in the render option)
@ -26,7 +27,7 @@ export type ComponentPublicInstance<
$props: PublicProps
$attrs: Data
$refs: Data
$slots: Data
$slots: Slots
$root: ComponentInternalInstance | null
$parent: ComponentInternalInstance | null
$emit: Emit