]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: improve slots type (#366)
authorlikui <2218301630@qq.com>
Wed, 23 Oct 2019 13:29:09 +0000 (21:29 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 23 Oct 2019 13:29:09 +0000 (09:29 -0400)
packages/runtime-core/src/componentProxy.ts

index 611328392762bc5c19fb8e2c9be6d7cec4648ad0..b54f927af220fd4e1f9f2cb82144aa804b641c79 100644 (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