@@ -7,11 +7,9 @@ exports[` 1`] = `
7
7
4 | }
8
8
5 |
9
9
> 6 | interface Node {
10
- | ^^^^^^^^^^^^^^^
11
- > 7 | id : ID !
12
- | ^^^^^^^^^^^^^^^^^
13
- > 8 | }
14
- | ^^^^^^^^^^ Type "Node" is unreachable
10
+ | ^^^^ Type " Node" is unreachable
11
+ 7 | id : ID !
12
+ 8 | }
15
13
9 |
16
14
10 | interface AnotherNode {
17
15
11 | createdAt : String
@@ -45,13 +43,10 @@ exports[` 2`] = `
45
43
12 | }
46
44
13 |
47
45
> 14 | interface User implements Node {
48
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
- > 15 | id : ID !
50
- | ^^^^^^^^^^^^^^^^^
51
- > 16 | name : String
52
- | ^^^^^^^^^^^^^^^^^
53
- > 17 | }
54
- | ^^^^^^^^^^ Type "User" is unreachable
46
+ | ^^^^ Type " User" is unreachable
47
+ 15 | id : ID !
48
+ 16 | name : String
49
+ 17 | }
55
50
18 |
56
51
19 | type SuperUser implements User & Node {
57
52
20 | id : ID !
@@ -81,23 +76,19 @@ exports[` 3`] = `
81
76
17 | }
82
77
18 |
83
78
> 19 | type SuperUser implements User & Node {
84
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85
- > 20 | id : ID !
86
- | ^^^^^^^^^^^^^^^^^
87
- > 21 | name : String
88
- | ^^^^^^^^^^^^^^^^^
89
- > 22 | address : String
90
- | ^^^^^^^^^^^^^^^^^
91
- > 23 | }
92
- | ^^^^^^^^^^ Type "SuperUser" is unreachable
79
+ | ^^^^^^^^^ Type " SuperUser" is unreachable
80
+ 20 | id : ID !
81
+ 21 | name : String
82
+ 22 | address : String
83
+ 23 | }
93
84
24 |
94
85
` ;
95
86
96
87
exports [` 4` ] = `
97
88
1 |
98
89
2 | # ScalarTypeDefinition
99
90
> 3 | scalar DateTime
100
- | ^^^^^^^ Type "DateTime" is unreachable
91
+ | ^ ^^^^^^^ Type "DateTime" is unreachable
101
92
4 |
102
93
5 | # EnumTypeDefinition
103
94
6 | enum Role {
@@ -137,13 +128,10 @@ exports[` 5`] = `
137
128
4 |
138
129
5 | # EnumTypeDefinition
139
130
> 6 | enum Role {
140
- | ^^^^^^^^^^
141
- > 7 | ADMIN
142
- | ^^^^^^^^^^^^^^^
143
- > 8 | USER
144
- | ^^^^^^^^^^^^^^^
145
- > 9 | }
146
- | ^^^^^^^^^^ Type "Role" is unreachable
131
+ | ^^^^ Type " Role" is unreachable
132
+ 7 | ADMIN
133
+ 8 | USER
134
+ 9 | }
147
135
10 |
148
136
11 | # DirectiveDefinition
149
137
12 | directive @auth(role: [String!]!) on FIELD_DEFINITION
@@ -183,7 +171,7 @@ exports[` 6`] = `
183
171
10 |
184
172
11 | # DirectiveDefinition
185
173
> 12 | directive @auth(role: [String!]!) on FIELD_DEFINITION
186
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ Type "auth" is unreachable
174
+ | ^^^^^ Type "auth" is unreachable
187
175
13 |
188
176
14 | # UnionTypeDefinition
189
177
15 | union Union = String | Boolean
@@ -223,7 +211,7 @@ exports[` 7`] = `
223
211
13 |
224
212
14 | # UnionTypeDefinition
225
213
> 15 | union Union = String | Boolean
226
- | ^^^^^^^^^^^^^^^^^^ ^^^^^ Type "Union" is unreachable
214
+ | ^^^^^ Type "Union" is unreachable
227
215
16 |
228
216
17 | # InputObjectTypeDefinition
229
217
18 | input UsersFilter {
@@ -263,11 +251,9 @@ exports[` 8`] = `
263
251
16 |
264
252
17 | # InputObjectTypeDefinition
265
253
> 18 | input UsersFilter {
266
- | ^^^^^^^^^^^^^^^^^^
267
- > 19 | limit : Int
268
- | ^^^^^^^^^^^^^^^^^^^^
269
- > 20 | }
270
- | ^^^^^^^^^^ Type "UsersFilter" is unreachable
254
+ | ^^^^^^^^^^^ Type " UsersFilter" is unreachable
255
+ 19 | limit : Int
256
+ 20 | }
271
257
21 |
272
258
22 | # InterfaceTypeDefinition
273
259
23 | interface Address {
@@ -307,11 +293,9 @@ exports[` 9`] = `
307
293
21 |
308
294
22 | # InterfaceTypeDefinition
309
295
> 23 | interface Address {
310
- | ^^^^^^^^^^^^^^^^^^
311
- > 24 | city : String
312
- | ^^^^^^^^^^^^^^^^^^^^^^
313
- > 25 | }
314
- | ^^^^^^^^^^ Type "Address" is unreachable
296
+ | ^^^^^^^ Type " Address" is unreachable
297
+ 24 | city : String
298
+ 25 | }
315
299
26 |
316
300
27 | # ObjectTypeDefinition
317
301
28 | type User implements Address {
@@ -351,11 +335,9 @@ exports[` 10`] = `
351
335
26 |
352
336
27 | # ObjectTypeDefinition
353
337
> 28 | type User implements Address {
354
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
355
- > 29 | city : String
356
- | ^^^^^^^^^^^^^^^^^^^^^^
357
- > 30 | }
358
- | ^^^^^^^^^^ Type "User" is unreachable
338
+ | ^^^^ Type " User" is unreachable
339
+ 29 | city : String
340
+ 30 | }
359
341
31 |
360
342
32 | type Query
361
343
33 |
@@ -381,18 +363,16 @@ exports[` 11`] = `
381
363
17 | }
382
364
18 |
383
365
> 19 | scalar DateTime
384
- | ^^^^^^^ Type "DateTime" is unreachable
366
+ | ^ ^^^^^^^ Type "DateTime" is unreachable
385
367
20 |
386
368
` ;
387
369
388
370
exports [` 12` ] = `
389
371
1 |
390
372
> 2 | interface User {
391
- | ^^^^^^^^^^^^^^^
392
- > 3 | id : String
393
- | ^^^^^^^^^^^^^^^^^^^^
394
- > 4 | }
395
- | ^^^^^^^^^^ Type "User" is unreachable
373
+ | ^^^^ Type " User" is unreachable
374
+ 3 | id : String
375
+ 4 | }
396
376
5 |
397
377
6 | interface AnotherUser {
398
378
7 | createdAt : String
@@ -424,11 +404,9 @@ exports[` 13`] = `
424
404
8 | }
425
405
9 |
426
406
> 10 | type SuperUser implements User {
427
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
428
- > 11 | id : String
429
- | ^^^^^^^^^^^^^^^^^^^^
430
- > 12 | }
431
- | ^^^^^^^^^^ Type "SuperUser" is unreachable
407
+ | ^^^^^^^^^ Type " SuperUser" is unreachable
408
+ 11 | id : String
409
+ 12 | }
432
410
13 |
433
411
14 | # ObjectTypeExtension
434
412
15 | extend type SuperUser {
@@ -457,11 +435,9 @@ exports[` 14`] = `
457
435
13 |
458
436
14 | # ObjectTypeExtension
459
437
> 15 | extend type SuperUser {
460
- | ^^^^^^^^^^^^^^^^^^^^^^
461
- > 16 | detail : String
462
- | ^^^^^^^^^^^^^^^^^^^^^^^^
463
- > 17 | }
464
- | ^^^^^^^^^^ Type "SuperUser" is unreachable
438
+ | ^^^^^^^^^ Type " SuperUser" is unreachable
439
+ 16 | detail : String
440
+ 17 | }
465
441
18 |
466
442
19 | type Query {
467
443
20 | user : AnotherUser !
@@ -491,6 +467,6 @@ exports[` 15`] = `
491
467
19 | }
492
468
20 |
493
469
> 21 | scalar DateTime
494
- | ^^^^^^^ Type "DateTime" is unreachable
470
+ | ^ ^^^^^^^ Type "DateTime" is unreachable
495
471
22 |
496
472
` ;
0 commit comments