@@ -617,27 +617,26 @@ export {};
617
617
`;
618
618
619
619
exports[`vue-tsc-dts > Input: template-slots/component.vue, Output: template-slots/component.vue.d.ts 1`] = `
620
- "declare function __VLS_template(): {
621
- attrs : Partial < {}> ;
622
- slots : {
623
- ' no-bind' ? (_ : {}): any ;
624
- default? (_ : {
625
- num: number ;
626
- }): any ;
627
- ' named-slot' ? (_ : {
628
- str: string ;
629
- }): any ;
630
- vbind? (_ : {
631
- num: number ;
632
- str: string ;
633
- }): any ;
634
- };
635
- refs : {};
636
- rootEl : any ;
620
+ "declare var __VLS_0: { } ;
621
+ declare var __VLS_1: {
622
+ num : number ;
623
+ } ;
624
+ declare var __VLS_2: {
625
+ str : string ;
637
626
} ;
638
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template >;
627
+ declare var __VLS_3: {
628
+ num : number ;
629
+ str : string ;
630
+ } ;
631
+ declare var __VLS_slots: {
632
+ ' no-bind' ? (_ : typeof __VLS_0 ): any ;
633
+ default ? (_ : typeof __VLS_1 ): any ;
634
+ ' named-slot' ? (_ : typeof __VLS_2 ): any ;
635
+ vbind ? (_ : typeof __VLS_3 ): any ;
636
+ } ;
637
+ type __VLS_TemplateSlots = typeof __VLS_slots;
639
638
declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<{ } > & Readonly<{ } >, { } , { } , { } , { } , string, import("vue").ComponentProvideOptions, true, { } , any>;
640
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
639
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateSlots >;
641
640
export default _default;
642
641
type __VLS_WithTemplateSlots<T, S> = T & {
643
642
new (): {
@@ -649,39 +648,34 @@ type __VLS_WithTemplateSlots<T, S> = T & {
649
648
650
649
exports[`vue-tsc-dts > Input: template-slots/component-define-slots.vue, Output: template-slots/component-define-slots.vue.d.ts 1`] = `
651
650
"import { VNode } from 'vue';
652
- declare function __VLS_template(): {
653
- attrs : Partial < {}> ;
654
- slots : Readonly < {
655
- default: (props : {
656
- num: number ;
657
- }) => VNode [];
658
- ' named-slot' : (props : {
659
- str: string ;
660
- }) => VNode [];
661
- vbind : (props : {
662
- num: number ;
663
- str : string ;
664
- }) => VNode [];
665
- ' no-bind' : () => VNode [];
666
- }> & {
667
- default: (props : {
668
- num: number ;
669
- }) => VNode [];
670
- ' named-slot' : (props : {
671
- str: string ;
672
- }) => VNode [];
673
- vbind : (props : {
674
- num: number ;
675
- str : string ;
676
- }) => VNode [];
677
- ' no-bind' : () => VNode [];
678
- };
679
- refs : {};
680
- rootEl : any ;
651
+ declare const __VLS_slots: Readonly<{
652
+ default : (props : {
653
+ num: number ;
654
+ }) => VNode [];
655
+ ' named-slot' : (props : {
656
+ str: string ;
657
+ }) => VNode [];
658
+ vbind : (props : {
659
+ num: number ;
660
+ str : string ;
661
+ }) => VNode [];
662
+ ' no-bind' : () => VNode [];
663
+ } > & {
664
+ default : (props : {
665
+ num: number ;
666
+ }) => VNode [];
667
+ ' named-slot' : (props : {
668
+ str: string ;
669
+ }) => VNode [];
670
+ vbind : (props : {
671
+ num: number ;
672
+ str : string ;
673
+ }) => VNode [];
674
+ ' no-bind' : () => VNode [];
681
675
} ;
682
- type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
676
+ type __VLS_TemplateSlots = typeof __VLS_slots ;
683
677
declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<{ } > & Readonly<{ } >, { } , { } , { } , { } , string, import("vue").ComponentProvideOptions, true, { } , any>;
684
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
678
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateSlots >;
685
679
export default _default;
686
680
type __VLS_WithTemplateSlots<T, S> = T & {
687
681
new (): {
@@ -692,23 +686,18 @@ type __VLS_WithTemplateSlots<T, S> = T & {
692
686
`;
693
687
694
688
exports[`vue-tsc-dts > Input: template-slots/component-destructuring.vue, Output: template-slots/component-destructuring.vue.d.ts 1`] = `
695
- "declare function __VLS_template(): {
696
- attrs : Partial < {}> ;
697
- slots : Readonly < {
698
- bottom: (props : {
699
- num: number ;
700
- }) => any [];
701
- }> & {
702
- bottom: (props : {
703
- num: number ;
704
- }) => any [];
705
- };
706
- refs : {};
707
- rootEl : any ;
689
+ "declare const __VLS_slots: Readonly<{
690
+ bottom : (props : {
691
+ num: number ;
692
+ }) => any [];
693
+ } > & {
694
+ bottom : (props : {
695
+ num: number ;
696
+ }) => any [];
708
697
} ;
709
- type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
698
+ type __VLS_TemplateSlots = typeof __VLS_slots ;
710
699
declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<{ } > & Readonly<{ } >, { } , { } , { } , { } , string, import("vue").ComponentProvideOptions, true, { } , any>;
711
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
700
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateSlots >;
712
701
export default _default;
713
702
type __VLS_WithTemplateSlots<T, S> = T & {
714
703
new (): {
@@ -719,27 +708,26 @@ type __VLS_WithTemplateSlots<T, S> = T & {
719
708
`;
720
709
721
710
exports[`vue-tsc-dts > Input: template-slots/component-no-script.vue, Output: template-slots/component-no-script.vue.d.ts 1`] = `
722
- "declare function __VLS_template(): {
723
- attrs : Partial < {}> ;
724
- slots : {
725
- ' no-bind' ? (_ : {}): any ;
726
- default? (_ : {
727
- num: number ;
728
- }): any ;
729
- ' named-slot' ? (_ : {
730
- str: string ;
731
- }): any ;
732
- vbind? (_ : {
733
- num: number ;
734
- str: string ;
735
- }): any ;
736
- };
737
- refs : {};
738
- rootEl : any ;
711
+ "declare var __VLS_0: { } ;
712
+ declare var __VLS_1: {
713
+ num : number ;
714
+ } ;
715
+ declare var __VLS_2: {
716
+ str : string ;
717
+ } ;
718
+ declare var __VLS_3: {
719
+ num : number ;
720
+ str : string ;
721
+ } ;
722
+ declare var __VLS_slots: {
723
+ ' no-bind' ? (_ : typeof __VLS_0 ): any ;
724
+ default ? (_ : typeof __VLS_1 ): any ;
725
+ ' named-slot' ? (_ : typeof __VLS_2 ): any ;
726
+ vbind ? (_ : typeof __VLS_3 ): any ;
739
727
} ;
740
- type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
728
+ type __VLS_TemplateSlots = typeof __VLS_slots ;
741
729
declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<{ } > & Readonly<{ } >, { } , { } , { } , { } , string, import("vue").ComponentProvideOptions, true, { } , any>;
742
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
730
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateSlots >;
743
731
export default _default;
744
732
type __VLS_WithTemplateSlots<T, S> = T & {
745
733
new (): {
0 commit comments