@@ -633,26 +633,26 @@ export {};
633633`;
634634
635635exports[`vue-tsc-dts > Input: template-slots/component.vue, Output: template-slots/component.vue.d.ts 1`] = `
636- "declare var __VLS_0 : { } ;
637- declare var __VLS_1 : {
638- num : number ;
639- } ;
640- declare var __VLS_2: {
641- str : string ;
642- } ;
643- declare var __VLS_3: {
644- num : number ;
645- str : string ;
646- } ;
647- declare const __VLS_templateSlots: {
648- " no-bind " ? ( _ : typeof __VLS_0 ): any ;
649- default ? ( _ : typeof __VLS_1 ) : any ;
650- " named-slot " ? ( _ : typeof __VLS_2 ) : any ;
651- vbind ? ( _ : typeof __VLS_3 ) : any ;
636+ "declare function __VLS_template() : {
637+ slots : {
638+ " no-bind " ? ( _ : {}) : any ;
639+ default ? ( _ : {
640+ num : number ;
641+ }) : any ;
642+ " named-slot " ? ( _ : {
643+ str : string ;
644+ }) : any ;
645+ vbind ? ( _ : {
646+ num : number ;
647+ str : string ;
648+ } ): any ;
649+ } ;
650+ refs : {} ;
651+ attrs : Partial < {} > ;
652652} ;
653- type __VLS_Slots = typeof __VLS_templateSlots ;
653+ type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
654654declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ } >>, { } , { } >;
655- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots >;
655+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
656656export default _default;
657657type __VLS_WithTemplateSlots<T, S > = T & {
658658 new (): {
@@ -664,34 +664,38 @@ type __VLS_WithTemplateSlots<T, S> = T & {
664664
665665exports[`vue-tsc-dts > Input: template-slots/component-define-slots.vue, Output: template-slots/component-define-slots.vue.d.ts 1`] = `
666666"import { VNode } from 'vue';
667- declare const __VLS_templateSlots: Readonly<{
668- default : (props : {
669- num: number ;
670- }) => VNode [];
671- ' named-slot' : (props : {
672- str: string ;
673- }) => VNode [];
674- vbind : (props : {
675- num: number ;
676- str : string ;
677- }) => VNode [];
678- ' no-bind' : () => VNode [];
679- } > & {
680- default : (props : {
681- num: number ;
682- }) => VNode [];
683- ' named-slot' : (props : {
684- str: string ;
685- }) => VNode [];
686- vbind : (props : {
687- num: number ;
688- str : string ;
689- }) => VNode [];
690- ' no-bind' : () => VNode [];
667+ declare function __VLS_template(): {
668+ slots : Readonly < {
669+ default: (props : {
670+ num: number ;
671+ }) => VNode [];
672+ ' named-slot' : (props : {
673+ str: string ;
674+ }) => VNode [];
675+ vbind : (props : {
676+ num: number ;
677+ str : string ;
678+ }) => VNode [];
679+ ' no-bind' : () => VNode [];
680+ }> & {
681+ default: (props : {
682+ num: number ;
683+ }) => VNode [];
684+ ' named-slot' : (props : {
685+ str: string ;
686+ }) => VNode [];
687+ vbind : (props : {
688+ num: number ;
689+ str : string ;
690+ }) => VNode [];
691+ ' no-bind' : () => VNode [];
692+ };
693+ refs : {};
694+ attrs : Partial < {}> ;
691695} ;
692- type __VLS_Slots = typeof __VLS_templateSlots ;
696+ type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
693697declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ } >>, { } , { } >;
694- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots >;
698+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
695699export default _default;
696700type __VLS_WithTemplateSlots<T, S > = T & {
697701 new (): {
@@ -702,18 +706,22 @@ type __VLS_WithTemplateSlots<T, S> = T & {
702706`;
703707
704708exports[`vue-tsc-dts > Input: template-slots/component-destructuring.vue, Output: template-slots/component-destructuring.vue.d.ts 1`] = `
705- "declare const __VLS_templateSlots: Readonly<{
706- bottom : (props : {
707- num: number ;
708- }) => any [];
709- } > & {
710- bottom : (props : {
711- num: number ;
712- }) => any [];
709+ "declare function __VLS_template(): {
710+ slots : Readonly < {
711+ bottom: (props : {
712+ num: number ;
713+ }) => any [];
714+ }> & {
715+ bottom: (props : {
716+ num: number ;
717+ }) => any [];
718+ };
719+ refs : {};
720+ attrs : Partial < {}> ;
713721} ;
714- type __VLS_Slots = typeof __VLS_templateSlots ;
722+ type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
715723declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ } >>, { } , { } >;
716- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots >;
724+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
717725export default _default;
718726type __VLS_WithTemplateSlots<T, S > = T & {
719727 new (): {
@@ -724,26 +732,26 @@ type __VLS_WithTemplateSlots<T, S> = T & {
724732`;
725733
726734exports[`vue-tsc-dts > Input: template-slots/component-no-script.vue, Output: template-slots/component-no-script.vue.d.ts 1`] = `
727- "declare var __VLS_0 : { } ;
728- declare var __VLS_1 : {
729- num : number ;
730- } ;
731- declare var __VLS_2: {
732- str : string ;
733- } ;
734- declare var __VLS_3: {
735- num : number ;
736- str : string ;
737- } ;
738- declare const __VLS_templateSlots: {
739- " no-bind " ? ( _ : typeof __VLS_0 ): any ;
740- default ? ( _ : typeof __VLS_1 ) : any ;
741- " named-slot " ? ( _ : typeof __VLS_2 ) : any ;
742- vbind ? ( _ : typeof __VLS_3 ) : any ;
735+ "declare function __VLS_template() : {
736+ slots : {
737+ " no-bind " ? ( _ : {}) : any ;
738+ default ? ( _ : {
739+ num : number ;
740+ }) : any ;
741+ " named-slot " ? ( _ : {
742+ str : string ;
743+ }) : any ;
744+ vbind ? ( _ : {
745+ num : number ;
746+ str : string ;
747+ } ): any ;
748+ } ;
749+ refs : {} ;
750+ attrs : Partial < {} > ;
743751} ;
744- type __VLS_Slots = typeof __VLS_templateSlots ;
752+ type __VLS_TemplateResult = ReturnType< typeof __VLS_template > ;
745753declare const __VLS_component: import("vue").DefineComponent<{ } , { } , { } , { } , { } , import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { } , string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ } >>, { } , { } >;
746- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots >;
754+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"] >;
747755export default _default;
748756type __VLS_WithTemplateSlots<T, S > = T & {
749757 new (): {
0 commit comments