Skip to content

Commit f26e8bb

Browse files
committed
Merge branch 'fix/issue-3779-3820' of https://github.com/so1ve/language-tools into pr/3838
2 parents 248aa41 + 861b433 commit f26e8bb

File tree

28 files changed

+267
-443
lines changed

28 files changed

+267
-443
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ describe('Completions', async () => {
155155
"slot",
156156
"template",
157157
"fixture",
158+
"BaseTransition",
158159
]
159160
`);
160161
});
@@ -306,7 +307,7 @@ describe('Completions', async () => {
306307
},
307308
],
308309
"detail": "Add import from "./ComponentForAutoImport.vue"
309-
(property) default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>",
310+
(property) default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, ... 7 more ..., {}>",
310311
"documentation": {
311312
"kind": "markdown",
312313
"value": "",

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

Lines changed: 69 additions & 165 deletions
Large diffs are not rendered by default.

packages/tsc/tests/typecheck.spec.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,29 @@ 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 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.",
13-
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.",
12+
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, ... 15 more ..., {}>'.",
13+
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, ... 15 more ..., {}>'.",
1414
"test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.",
15+
"test-workspace/tsc/passedFixtures/#4503/main.vue(4,2): error TS2578: Unused '@ts-expect-error' directive.",
16+
"test-workspace/tsc/passedFixtures/vue3_strictTemplate/#3539/main.vue(8,2): error TS2578: Unused '@ts-expect-error' directive.",
17+
"test-workspace/tsc/passedFixtures/vue3_strictTemplate/#3718/main.vue(2,2): error TS2578: Unused '@ts-expect-error' directive.",
1518
]
1619
`);
1720
});
1821

19-
test(`TypeScript - next`, () => {
22+
test(`TypeScript - Next`, () => {
2023
expect(
2124
getTscOutput('next')
2225
).toMatchInlineSnapshot(`
2326
[
24-
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.",
25-
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 12 more ..., {}>'.",
27+
"test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, ... 15 more ..., {}>'.",
28+
"test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly<{}>, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, ... 15 more ..., {}>'.",
2629
"test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.",
2730
"test-workspace/tsc/passedFixtures/#3373/tsconfig.json(4,3): error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
2831
Use 'verbatimModuleSyntax' instead.",
32+
"test-workspace/tsc/passedFixtures/#4503/main.vue(4,2): error TS2578: Unused '@ts-expect-error' directive.",
33+
"test-workspace/tsc/passedFixtures/vue3_strictTemplate/#3539/main.vue(8,2): error TS2578: Unused '@ts-expect-error' directive.",
34+
"test-workspace/tsc/passedFixtures/vue3_strictTemplate/#3718/main.vue(2,2): error TS2578: Unused '@ts-expect-error' directive.",
2935
]
3036
`);
3137
});

0 commit comments

Comments
 (0)