Skip to content

Commit f6550c9

Browse files
committed
fix: regenerate svelte 5 expected json
1 parent 8e1cce2 commit f6550c9

File tree

8 files changed

+27
-64
lines changed

8 files changed

+27
-64
lines changed

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$store-undefined/expected_svelte_5.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"range": { "start": { "line": 8, "character": 2 }, "end": { "line": 8, "character": 17 } },
4+
"severity": 1,
5+
"source": "ts",
6+
"message": "'$interfaceStore' is possibly 'undefined'.",
7+
"code": 18048,
8+
"tags": []
9+
},
210
{
311
"range": { "start": { "line": 9, "character": 36 }, "end": { "line": 9, "character": 64 } },
412
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/bind-this/expected_svelte_5.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
"code": 6133,
88
"tags": [1]
99
},
10+
{
11+
"range": {
12+
"start": { "line": 18, "character": 2 },
13+
"end": { "line": 18, "character": 11 }
14+
},
15+
"severity": 1,
16+
"source": "ts",
17+
"message": "Variable 'component' is used before being assigned.",
18+
"code": 2454,
19+
"tags": []
20+
},
1021
{
1122
"range": {
1223
"start": { "line": 40, "character": 16 },
@@ -47,7 +58,7 @@
4758
},
4859
"severity": 1,
4960
"source": "ts",
50-
"message": "Type '{}' is not assignable to type 'Properties<{ prop: boolean; }, any>'.",
61+
"message": "Type '{}' is not assignable to type 'Properties<{ prop: boolean; }, any> | undefined'.",
5162
"code": 2322,
5263
"tags": []
5364
},
@@ -80,7 +91,7 @@
8091
},
8192
"severity": 1,
8293
"source": "ts",
83-
"message": "Type '{}' is not assignable to type 'Properties<{ prop: boolean; }, any>'.",
94+
"message": "Type '{}' is not assignable to type 'Properties<{ prop: boolean; }, any> | undefined'.",
8495
"code": 2322,
8596
"tags": []
8697
}

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/component-invalid/expected_svelte_5.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"severity": 1,
88
"source": "ts",
9-
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any>'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
9+
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any> | null | undefined'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
1010
"code": 2345,
1111
"tags": []
1212
},
@@ -28,7 +28,7 @@
2828
},
2929
"severity": 1,
3030
"source": "ts",
31-
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any>'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
31+
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any> | null | undefined'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
3232
"code": 2345,
3333
"tags": []
3434
},
@@ -39,7 +39,7 @@
3939
},
4040
"severity": 1,
4141
"source": "ts",
42-
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any>'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
42+
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any> | null | undefined'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
4343
"code": 2345,
4444
"tags": []
4545
},
@@ -50,7 +50,7 @@
5050
},
5151
"severity": 1,
5252
"source": "ts",
53-
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any>'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
53+
"message": "Argument of type 'typeof DoesntWork' is not assignable to parameter of type 'ConstructorOfATypedSvelteComponent | Component<any, any, any> | null | undefined'.\n Type 'typeof DoesntWork' is not assignable to type 'ConstructorOfATypedSvelteComponent'.\n Type 'DoesntWork' is missing the following properties from type 'ATypedSvelteComponent': $$prop_def, $$events_def, $$slot_def, $on\n\nPossible causes:\n- You use the instance type of a component where you should use the constructor type\n- Type definitions are missing for this Svelte Component. ",
5454
"code": 2345,
5555
"tags": []
5656
}

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/deprecated-unused-hints/expected_svelte_5.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 2, "character": 8 }, "end": { "line": 2, "character": 9 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Variable 'a' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7043,
8-
"tags": []
9-
},
102
{
113
"range": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 5 } },
124
"severity": 4,
@@ -15,14 +7,6 @@
157
"code": 6385,
168
"tags": [2]
179
},
18-
{
19-
"range": { "start": { "line": 4, "character": 8 }, "end": { "line": 4, "character": 9 } },
20-
"severity": 4,
21-
"source": "ts",
22-
"message": "Variable 'c' implicitly has an 'any' type, but a better type may be inferred from usage.",
23-
"code": 7043,
24-
"tags": []
25-
},
2610
{
2711
"range": { "start": { "line": 4, "character": 8 }, "end": { "line": 4, "character": 9 } },
2812
"severity": 4,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/exports-map-svelte/expected_svelte_5.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77
"code": 2307,
88
"tags": []
99
},
10-
{
11-
"range": { "start": { "line": 2, "character": 27 }, "end": { "line": 2, "character": 38 } },
12-
"severity": 1,
13-
"source": "ts",
14-
"message": "Cannot find module 'package/x' or its corresponding type declarations.",
15-
"code": 2307,
16-
"tags": []
17-
},
1810
{
1911
"range": { "start": { "line": 3, "character": 38 }, "end": { "line": 3, "character": 49 } },
2012
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/project-reference/nested/expected_svelte_5.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 3, "character": 8 }, "end": { "line": 3, "character": 11 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Parameter 'num' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7044,
8-
"tags": []
9-
},
10-
{
11-
"range": { "start": { "line": 1, "character": 23 }, "end": { "line": 1, "character": 28 } },
12-
"severity": 1,
13-
"source": "ts",
14-
"message": "Cannot find module 'hi2' or its corresponding type declarations.",
15-
"code": 2307,
16-
"tags": []
17-
},
182
{
193
"range": { "start": { "line": 6, "character": 8 }, "end": { "line": 6, "character": 9 } },
204
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/project-reference/paths/expected_svelte_5.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 3, "character": 4 }, "end": { "line": 3, "character": 7 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Parameter 'num' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7044,
8-
"tags": []
9-
},
10-
{
11-
"range": { "start": { "line": 1, "character": 19 }, "end": { "line": 1, "character": 23 } },
12-
"severity": 1,
13-
"source": "ts",
14-
"message": "Cannot find module 'hi' or its corresponding type declarations.",
15-
"code": 2307,
16-
"tags": []
17-
},
182
{
193
"range": { "start": { "line": 6, "character": 4 }, "end": { "line": 6, "character": 5 } },
204
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/style-directive/expected_svelte_5.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"severity": 1,
88
"source": "ts",
9-
"message": "Argument of type 'boolean' is not assignable to parameter of type 'String | Number'.",
9+
"message": "Argument of type 'true' is not assignable to parameter of type 'String | Number | null | undefined'.",
1010
"code": 2345,
1111
"tags": []
1212
},
@@ -17,7 +17,7 @@
1717
},
1818
"severity": 1,
1919
"source": "ts",
20-
"message": "Argument of type 'boolean' is not assignable to parameter of type 'String | Number'.",
20+
"message": "Argument of type 'true' is not assignable to parameter of type 'String | Number | null | undefined'.",
2121
"code": 2345,
2222
"tags": []
2323
}

0 commit comments

Comments
 (0)