File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -304,8 +304,8 @@ Vue.component('component-with-scoped-slot', {
304
304
child : {
305
305
render ( this : Vue , h : CreateElement ) {
306
306
return h ( 'div' , [
307
- this . $scopedSlots [ 'default' ] ( { msg : 'hi' } ) ,
308
- this . $scopedSlots [ 'item' ] ( { msg : 'hello' } )
307
+ this . $scopedSlots [ 'default' ] ! ( { msg : 'hi' } ) ,
308
+ this . $scopedSlots [ 'item' ] ! ( { msg : 'hello' } )
309
309
] )
310
310
}
311
311
}
@@ -314,7 +314,7 @@ Vue.component('component-with-scoped-slot', {
314
314
315
315
Vue . component ( 'narrow-array-of-vnode-type' , {
316
316
render ( h ) : VNode {
317
- const slot = this . $scopedSlots . default ( { } )
317
+ const slot = this . $scopedSlots . default ! ( { } )
318
318
if ( typeof slot !== 'string' ) {
319
319
const first = slot [ 0 ]
320
320
if ( ! Array . isArray ( first ) && typeof first !== 'string' ) {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ export interface Vue {
27
27
readonly $root : Vue ;
28
28
readonly $children : Vue [ ] ;
29
29
readonly $refs : { [ key : string ] : Vue | Element | Vue [ ] | Element [ ] } ;
30
- readonly $slots : { [ key : string ] : VNode [ ] } ;
31
- readonly $scopedSlots : { [ key : string ] : ScopedSlot } ;
30
+ readonly $slots : { [ key : string ] : VNode [ ] | undefined } ;
31
+ readonly $scopedSlots : { [ key : string ] : ScopedSlot | undefined } ;
32
32
readonly $isServer : boolean ;
33
33
readonly $data : Record < string , any > ;
34
34
readonly $props : Record < string , any > ;
You can’t perform that action at this time.
0 commit comments