Skip to content

Commit 6255c49

Browse files
committed
chore: update to Vue 3.5.2
1 parent 1dafe62 commit 6255c49

File tree

5 files changed

+103
-56
lines changed

5 files changed

+103
-56
lines changed

packages/language-server/tests/completions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ describe('Completions', async () => {
342342
"(",
343343
],
344344
"detail": "Add import from "./ComponentForAutoImport.vue"
345-
(property) default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<...>, ... 7 more ..., {}>",
345+
(property) default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, ToResolvedProps<{}, {}>, ... 8 more ..., any>",
346346
"documentation": {
347347
"kind": "markdown",
348348
"value": "",

packages/tsc/tests/__snapshots__/dts.spec.ts.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ export default _default;
4646
`;
4747
4848
exports[`vue-tsc-dts > Input: empty-component/component.vue, Output: empty-component/component.vue.d.ts 1`] = `
49-
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
49+
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5050
export default _default;
5151
"
5252
`;
5353
5454
exports[`vue-tsc-dts > Input: empty-component/custom-extension-component.cext, Output: empty-component/custom-extension-component.cext.d.ts 1`] = `
55-
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
55+
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5656
export default _default;
5757
"
5858
`;
@@ -62,7 +62,7 @@ exports[`vue-tsc-dts > Input: events/component-class.vue, Output: events/compone
6262
foo: (value: string) => void;
6363
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
6464
onFoo?: (value: string) => any;
65-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
65+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6666
export default _default;
6767
"
6868
`;
@@ -169,7 +169,7 @@ type __VLS_PrettifyLocal<T> = {
169169
`;
170170
171171
exports[`vue-tsc-dts > Input: generic/main.vue, Output: generic/main.vue.d.ts 1`] = `
172-
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
172+
"declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
173173
export default _default;
174174
"
175175
`;
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
262262
objectDefault: Record<string, any>;
263263
arrayDefault: unknown[];
264264
complexDefault: unknown[];
265-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
265+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
266266
export default _default;
267267
"
268268
`;
@@ -286,7 +286,7 @@ exports[`vue-tsc-dts > Input: reference-type-events/component.vue, Output: refer
286286
arg2?: any;
287287
}) => any;
288288
onBaz?: () => any;
289-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
289+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
290290
export default _default;
291291
"
292292
`;
@@ -316,7 +316,7 @@ exports[`vue-tsc-dts > Input: reference-type-exposed/component.vue, Output: refe
316316
* a counter string
317317
*/
318318
counter: import("vue").Ref<string, string>;
319-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
319+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
320320
export default _default;
321321
"
322322
`;
@@ -336,7 +336,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
336336
"onUpdate:foo"?: (foo: number) => any;
337337
"onUpdate:bar"?: (bar: string[]) => any;
338338
"onUpdate:qux"?: (qux: string) => any;
339-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
339+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
340340
export default _default;
341341
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
342342
type __VLS_TypePropsToOption<T> = {
@@ -361,7 +361,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
361361
}>>> & Readonly<{}>, {
362362
bar: number;
363363
baz: string[];
364-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
364+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
365365
export default _default;
366366
type __VLS_WithDefaults<P, D> = {
367367
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
@@ -432,7 +432,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js.vue, Output: ref
432432
};
433433
}>> & Readonly<{}>, {
434434
bar: string;
435-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
435+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
436436
export default _default;
437437
"
438438
`;
@@ -523,7 +523,7 @@ exports[`vue-tsc-dts > Input: reference-type-props/component-js-setup.vue, Outpu
523523
hello: string;
524524
numberOrStringProp: string | number;
525525
arrayProps: unknown[];
526-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
526+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
527527
export default _default;
528528
"
529529
`;
@@ -651,7 +651,7 @@ exports[`vue-tsc-dts > Input: template-slots/component.vue, Output: template-slo
651651
attrs: Partial<{}>;
652652
};
653653
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
654-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
654+
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>;
655655
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
656656
export default _default;
657657
type __VLS_WithTemplateSlots<T, S> = T & {
@@ -694,7 +694,7 @@ declare function __VLS_template(): {
694694
attrs: Partial<{}>;
695695
};
696696
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
697-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
697+
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>;
698698
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
699699
export default _default;
700700
type __VLS_WithTemplateSlots<T, S> = T & {
@@ -720,7 +720,7 @@ exports[`vue-tsc-dts > Input: template-slots/component-destructuring.vue, Output
720720
attrs: Partial<{}>;
721721
};
722722
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
723-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
723+
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>;
724724
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
725725
export default _default;
726726
type __VLS_WithTemplateSlots<T, S> = T & {
@@ -750,7 +750,7 @@ exports[`vue-tsc-dts > Input: template-slots/component-no-script.vue, Output: te
750750
attrs: Partial<{}>;
751751
};
752752
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
753-
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
753+
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>;
754754
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
755755
export default _default;
756756
type __VLS_WithTemplateSlots<T, S> = T & {

packages/tsc/tests/typecheck.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ describe(`vue-tsc`, () => {
99
getTscOutput('stable')
1010
).toMatchInlineSnapshot(`
1111
[
12-
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 17 more ..., {}>'.",
13-
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 17 more ..., {}>'.",
12+
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
13+
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
1414
"test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.",
1515
]
1616
`);
@@ -24,8 +24,8 @@ describe(`vue-tsc`, () => {
2424
getTscOutput('next')
2525
).toMatchInlineSnapshot(`
2626
[
27-
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 17 more ..., {}>'.",
28-
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 17 more ..., {}>'.",
27+
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
28+
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{}, {}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.",
2929
"test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.",
3030
"test-workspace/tsc/passedFixtures/#3373/tsconfig.json(4,3): error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
3131
Use 'verbatimModuleSyntax' instead.",

0 commit comments

Comments
 (0)