Skip to content

Commit 99468e2

Browse files
committed
update
1 parent aa46426 commit 99468e2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"vue.server.path": "packages/language-server",
3+
"typescript.tsdk": "node_modules/typescript/lib",
24
"dprint.path": "node_modules/dprint/dprint",
35
"[javascript]": {
46
"editor.defaultFormatter": "dprint.dprint"
@@ -20,6 +22,5 @@
2022
"packages/*/lib/**/*.d.ts": true,
2123
"packages/*/lib/**/*.js": true,
2224
"packages/*/lib/**/*.map": true
23-
},
24-
"typescript.tsdk": "node_modules/typescript/lib"
25+
}
2526
}

packages/tsc/tests/typecheck.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test(`vue-tsc`, () => {
2525
getTscOutput().sort(),
2626
).toMatchInlineSnapshot(`
2727
[
28+
"test-workspace/tsc/#3718/main.vue(2,27): error TS2353: Object literal may only specify known properties, and 'onEventDoesNotExist' does not exist in type 'NonNullable<Partial<{}> & Omit<{ readonly to: string | RendererElement | null | undefined; readonly disabled?: boolean | undefined; readonly defer?: boolean | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps, undefined>>'.",
2829
"test-workspace/tsc/failed_#3632/both.vue(3,1): error TS1109: Expression expected.",
2930
"test-workspace/tsc/failed_#3632/both.vue(7,1): error TS1109: Expression expected.",
3031
"test-workspace/tsc/failed_#3632/script.vue(3,1): error TS1109: Expression expected.",

test-workspace/tsc/unknownProp/strict.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- @strictTemplates true -->
2+
13
<template>
24
<!-- @vue-expect-error -->
35
<Foo bar="123"></Foo>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"include": ["**/*"],
4-
"vueCompilerOptions": {
5-
"strictTemplates": true
6-
}
3+
"include": ["**/*"]
74
}

0 commit comments

Comments
 (0)