forked from sveltejs/language-tools
/
expected.json
68 lines (68 loc) · 2.78 KB
/
expected.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[
{
"range": {
"start": { "line": 14, "character": 6 },
"end": { "line": 14, "character": 13 }
},
"severity": 4,
"source": "ts",
"message": "'element' is declared but its value is never read.",
"code": 6133,
"tags": [1]
},
{
"range": {
"start": { "line": 23, "character": 2 },
"end": { "line": 23, "character": 11 }
},
"severity": 1,
"source": "ts",
"message": "Variable 'component' is used before being assigned.",
"code": 2454,
"tags": []
},
{
"range": {
"start": { "line": 44, "character": 16 },
"end": { "line": 44, "character": 23 }
},
"severity": 1,
"source": "ts",
"message": "Type 'HTMLDivElement' is missing the following properties from type 'HTMLInputElement': accept, alt, autocomplete, capture, and 52 more.",
"code": 2740,
"tags": []
},
{
"range": {
"start": { "line": 45, "character": 34 },
"end": { "line": 45, "character": 48 }
},
"severity": 1,
"source": "ts",
"message": "Type 'Component' is not assignable to type 'OtherComponent'.\n Types of property '$set' are incompatible.\n Type '(props?: Partial<{ prop: boolean; }> | undefined) => void' is not assignable to type '(props?: Partial<{ prop: string; }> | undefined) => void'.\n Types of parameters 'props' and 'props' are incompatible.\n Type 'Partial<{ prop: string; }> | undefined' is not assignable to type 'Partial<{ prop: boolean; }> | undefined'.\n Type 'Partial<{ prop: string; }>' is not assignable to type 'Partial<{ prop: boolean; }>'.\n Types of property 'prop' are incompatible.\n Type 'string | undefined' is not assignable to type 'boolean | undefined'.\n Type 'string' is not assignable to type 'boolean | undefined'.",
"code": 2322,
"tags": []
},
{
"range": {
"start": { "line": 46, "character": 35 },
"end": { "line": 46, "character": 57 }
},
"severity": 1,
"source": "ts",
"message": "Type 'ComponentWithFunction1' is not assignable to type 'ComponentWithFunction2'.\n Types of property 'action' are incompatible.\n Type '(a: number) => string | number' is not assignable to type '() => string'.",
"code": 2322,
"tags": []
},
{
"range": {
"start": { "line": 47, "character": 46 },
"end": { "line": 47, "character": 60 }
},
"severity": 1,
"source": "ts",
"message": "Type 'Component' is not assignable to type 'OtherComponent'.",
"code": 2322,
"tags": []
}
]