Skip to content

Commit 29d848c

Browse files
authored
Fix: Updated broken class-with-optional-properties test result (eslint#192)
1 parent 04f6556 commit 29d848c

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

tests/fixtures/typescript/basics/class-with-optional-properties.result.js

+69
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = {
4242
],
4343
"static": false,
4444
"type": "ClassProperty",
45+
"typeAnnotation": null,
4546
"value": null
4647
},
4748
{
@@ -83,6 +84,40 @@ module.exports = {
8384
],
8485
"static": false,
8586
"type": "ClassProperty",
87+
"typeAnnotation": {
88+
"loc": {
89+
"end": {
90+
"column": 15,
91+
"line": 3
92+
},
93+
"start": {
94+
"column": 9,
95+
"line": 3
96+
}
97+
},
98+
"range": [
99+
29,
100+
35
101+
],
102+
"type": "TypeAnnotation",
103+
"typeAnnotation": {
104+
"loc": {
105+
"end": {
106+
"column": 15,
107+
"line": 3
108+
},
109+
"start": {
110+
"column": 9,
111+
"line": 3
112+
}
113+
},
114+
"range": [
115+
29,
116+
35
117+
],
118+
"type": "TSStringKeyword"
119+
}
120+
},
86121
"value": null
87122
},
88123
{
@@ -124,6 +159,40 @@ module.exports = {
124159
],
125160
"static": false,
126161
"type": "ClassProperty",
162+
"typeAnnotation": {
163+
"loc": {
164+
"end": {
165+
"column": 23,
166+
"line": 4
167+
},
168+
"start": {
169+
"column": 17,
170+
"line": 4
171+
}
172+
},
173+
"range": [
174+
54,
175+
60
176+
],
177+
"type": "TypeAnnotation",
178+
"typeAnnotation": {
179+
"loc": {
180+
"end": {
181+
"column": 23,
182+
"line": 4
183+
},
184+
"start": {
185+
"column": 17,
186+
"line": 4
187+
}
188+
},
189+
"range": [
190+
54,
191+
60
192+
],
193+
"type": "TSStringKeyword"
194+
}
195+
},
127196
"value": null
128197
}
129198
],

0 commit comments

Comments
 (0)