From 9203dbb26071c51e52e41cba6535f45b8a946efd Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Wed, 13 Sep 2023 03:11:44 +0800 Subject: [PATCH] chore: update dts.spec.ts.snap --- .../tests/__snapshots__/dts.spec.ts.snap | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/packages/vue-tsc/tests/__snapshots__/dts.spec.ts.snap b/packages/vue-tsc/tests/__snapshots__/dts.spec.ts.snap index 6f08659375..cdbf19b223 100644 --- a/packages/vue-tsc/tests/__snapshots__/dts.spec.ts.snap +++ b/packages/vue-tsc/tests/__snapshots__/dts.spec.ts.snap @@ -256,7 +256,53 @@ export default _default; " `; -exports[`vue-tsc-dts > Input: defineProp_B/script-setup-generic.vue, Output: defineProp_B/script-setup-generic.vue.d.ts 1`] = `""`; +exports[`vue-tsc-dts > Input: defineProp_B/script-setup-generic.vue, Output: defineProp_B/script-setup-generic.vue.d.ts 1`] = ` +"declare const _default: (__VLS_props: { + a?: T; + b?: T; + c?: T; + d: T; +} & import(\\"vue\\").VNodeProps & import(\\"vue\\").AllowedComponentProps & import(\\"vue\\").ComponentCustomProps, __VLS_ctx?: Pick<{ + props: { + a?: T; + b?: T; + c?: T; + d: T; + }; + expose(exposed: {}): void; + attrs: any; + slots: {}; + emit: any; +}, \\"slots\\" | \\"attrs\\" | \\"emit\\">, __VLS_expose?: (exposed: {}) => void, __VLS_setup?: Promise<{ + props: { + a?: T; + b?: T; + c?: T; + d: T; + }; + expose(exposed: {}): void; + attrs: any; + slots: {}; + emit: any; +}>) => import(\\"vue\\").VNode & { + __ctx?: { + props: { + a?: T; + b?: T; + c?: T; + d: T; + }; + expose(exposed: {}): void; + attrs: any; + slots: {}; + emit: any; + }; +}; +export default _default; +" +`; exports[`vue-tsc-dts > Input: events/union_type.vue, Output: events/union_type.vue.d.ts 1`] = ` "declare const _default: import(\\"vue\\").DefineComponent<{}, {}, {}, {}, {}, import(\\"vue\\").ComponentOptionsMixin, import(\\"vue\\").ComponentOptionsMixin, {