@teambit/schema 0.0.755 → 0.0.758

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "__schema": "APISchema",
3
3
  "location": {
4
- "file": "index.ts",
4
+ "filePath": "index.ts",
5
5
  "line": 13,
6
6
  "character": 1
7
7
  },
8
8
  "module": {
9
9
  "__schema": "Module",
10
10
  "location": {
11
- "file": "index.ts",
11
+ "filePath": "index.ts",
12
12
  "line": 13,
13
13
  "character": 1
14
14
  },
@@ -16,7 +16,7 @@
16
16
  {
17
17
  "__schema": "FunctionLikeSchema",
18
18
  "location": {
19
- "file": "index.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 13,
21
21
  "character": 1
22
22
  },
@@ -29,16 +29,17 @@
29
29
  {
30
30
  "__schema": "ParameterSchema",
31
31
  "location": {
32
- "file": "index.ts",
32
+ "filePath": "index.ts",
33
33
  "line": 13,
34
34
  "character": 24
35
35
  },
36
36
  "name": "a",
37
+ "isOptional": false,
37
38
  "defaultValue": "4",
38
39
  "type": {
39
40
  "__schema": "InferenceTypeSchema",
40
41
  "location": {
41
- "file": "index.ts",
42
+ "filePath": "index.ts",
42
43
  "line": 13,
43
44
  "character": 24
44
45
  },
@@ -48,16 +49,17 @@
48
49
  {
49
50
  "__schema": "ParameterSchema",
50
51
  "location": {
51
- "file": "index.ts",
52
+ "filePath": "index.ts",
52
53
  "line": 13,
53
54
  "character": 31
54
55
  },
55
56
  "name": "b",
57
+ "isOptional": false,
56
58
  "defaultValue": "5",
57
59
  "type": {
58
60
  "__schema": "InferenceTypeSchema",
59
61
  "location": {
60
- "file": "index.ts",
62
+ "filePath": "index.ts",
61
63
  "line": 13,
62
64
  "character": 31
63
65
  },
@@ -68,7 +70,7 @@
68
70
  "returnType": {
69
71
  "__schema": "KeywordTypeSchema",
70
72
  "location": {
71
- "file": "index.ts",
73
+ "filePath": "index.ts",
72
74
  "line": 13,
73
75
  "character": 39
74
76
  },
@@ -77,7 +79,7 @@
77
79
  "doc": {
78
80
  "__schema": "DocSchema",
79
81
  "location": {
80
- "file": "index.ts",
82
+ "filePath": "index.ts",
81
83
  "line": 7,
82
84
  "character": 1
83
85
  },
@@ -85,7 +87,7 @@
85
87
  {
86
88
  "__schema": "TagSchema",
87
89
  "location": {
88
- "file": "index.ts",
90
+ "filePath": "index.ts",
89
91
  "line": 9,
90
92
  "character": 4
91
93
  },
@@ -95,7 +97,7 @@
95
97
  {
96
98
  "__schema": "TagSchema",
97
99
  "location": {
98
- "file": "index.ts",
100
+ "filePath": "index.ts",
99
101
  "line": 10,
100
102
  "character": 4
101
103
  },
@@ -105,7 +107,7 @@
105
107
  {
106
108
  "__schema": "ReturnTagSchema",
107
109
  "location": {
108
- "file": "index.ts",
110
+ "filePath": "index.ts",
109
111
  "line": 11,
110
112
  "character": 4
111
113
  },
@@ -117,7 +119,7 @@
117
119
  {
118
120
  "__schema": "TypeSchema",
119
121
  "location": {
120
- "file": "button.tsx",
122
+ "filePath": "button.tsx",
121
123
  "line": 7,
122
124
  "character": 1
123
125
  },
@@ -126,7 +128,7 @@
126
128
  "type": {
127
129
  "__schema": "TypeUnionSchema",
128
130
  "location": {
129
- "file": "button.tsx",
131
+ "filePath": "button.tsx",
130
132
  "line": 7,
131
133
  "character": 33
132
134
  },
@@ -134,7 +136,7 @@
134
136
  {
135
137
  "__schema": "LiteralTypeSchema",
136
138
  "location": {
137
- "file": "button.tsx",
139
+ "filePath": "button.tsx",
138
140
  "line": 7,
139
141
  "character": 33
140
142
  },
@@ -143,7 +145,7 @@
143
145
  {
144
146
  "__schema": "LiteralTypeSchema",
145
147
  "location": {
146
- "file": "button.tsx",
148
+ "filePath": "button.tsx",
147
149
  "line": 7,
148
150
  "character": 39
149
151
  },
@@ -155,7 +157,7 @@
155
157
  {
156
158
  "__schema": "TypeSchema",
157
159
  "location": {
158
- "file": "button.tsx",
160
+ "filePath": "button.tsx",
159
161
  "line": 9,
160
162
  "character": 1
161
163
  },
@@ -164,7 +166,7 @@
164
166
  "type": {
165
167
  "__schema": "TypeIntersectionSchema",
166
168
  "location": {
167
- "file": "button.tsx",
169
+ "filePath": "button.tsx",
168
170
  "line": 9,
169
171
  "character": 27
170
172
  },
@@ -172,42 +174,44 @@
172
174
  {
173
175
  "__schema": "TypeLiteralSchema",
174
176
  "location": {
175
- "file": "button.tsx",
177
+ "filePath": "button.tsx",
176
178
  "line": 9,
177
179
  "character": 27
178
180
  },
179
181
  "members": [
180
182
  {
181
- "__schema": "VariableSchema",
183
+ "__schema": "VariableLikeSchema",
182
184
  "location": {
183
- "file": "button.tsx",
185
+ "filePath": "button.tsx",
184
186
  "line": 13,
185
187
  "character": 3
186
188
  },
187
189
  "name": "children",
188
190
  "signature": "(property) children: any",
191
+ "isOptional": false,
189
192
  "type": {
190
193
  "__schema": "InferenceTypeSchema",
191
194
  "location": {
192
- "file": "button.tsx",
195
+ "filePath": "button.tsx",
193
196
  "line": 13,
194
197
  "character": 13
195
198
  }
196
199
  }
197
200
  },
198
201
  {
199
- "__schema": "VariableSchema",
202
+ "__schema": "VariableLikeSchema",
200
203
  "location": {
201
- "file": "button.tsx",
204
+ "filePath": "button.tsx",
202
205
  "line": 18,
203
206
  "character": 3
204
207
  },
205
208
  "name": "href",
206
209
  "signature": "(property) href?: string",
210
+ "isOptional": true,
207
211
  "type": {
208
212
  "__schema": "KeywordTypeSchema",
209
213
  "location": {
210
- "file": "button.tsx",
214
+ "filePath": "button.tsx",
211
215
  "line": 18,
212
216
  "character": 10
213
217
  },
@@ -215,18 +219,19 @@
215
219
  }
216
220
  },
217
221
  {
218
- "__schema": "VariableSchema",
222
+ "__schema": "VariableLikeSchema",
219
223
  "location": {
220
- "file": "button.tsx",
224
+ "filePath": "button.tsx",
221
225
  "line": 23,
222
226
  "character": 3
223
227
  },
224
228
  "name": "className",
225
229
  "signature": "(property) className?: string",
230
+ "isOptional": true,
226
231
  "type": {
227
232
  "__schema": "KeywordTypeSchema",
228
233
  "location": {
229
- "file": "button.tsx",
234
+ "filePath": "button.tsx",
230
235
  "line": 23,
231
236
  "character": 15
232
237
  },
@@ -238,7 +243,7 @@
238
243
  {
239
244
  "__schema": "InferenceTypeSchema",
240
245
  "location": {
241
- "file": "button.tsx",
246
+ "filePath": "button.tsx",
242
247
  "line": 24,
243
248
  "character": 5
244
249
  }
@@ -249,7 +254,7 @@
249
254
  {
250
255
  "__schema": "FunctionLikeSchema",
251
256
  "location": {
252
- "file": "button.tsx",
257
+ "filePath": "button.tsx",
253
258
  "line": 26,
254
259
  "character": 1
255
260
  },
@@ -262,15 +267,16 @@
262
267
  {
263
268
  "__schema": "ParameterSchema",
264
269
  "location": {
265
- "file": "button.tsx",
270
+ "filePath": "button.tsx",
266
271
  "line": 26,
267
272
  "character": 24
268
273
  },
269
274
  "name": "props",
275
+ "isOptional": false,
270
276
  "type": {
271
277
  "__schema": "TypeRefSchema",
272
278
  "location": {
273
- "file": "button.tsx",
279
+ "filePath": "button.tsx",
274
280
  "line": 26,
275
281
  "character": 31
276
282
  },
@@ -281,7 +287,7 @@
281
287
  "returnType": {
282
288
  "__schema": "InferenceTypeSchema",
283
289
  "location": {
284
- "file": "button.tsx",
290
+ "filePath": "button.tsx",
285
291
  "line": 26,
286
292
  "character": 1
287
293
  },
@@ -292,7 +298,7 @@
292
298
  "__schema": "ClassSchema",
293
299
  "className": "Bar",
294
300
  "location": {
295
- "file": "button.tsx",
301
+ "filePath": "button.tsx",
296
302
  "line": 61,
297
303
  "character": 1
298
304
  },
@@ -300,7 +306,7 @@
300
306
  {
301
307
  "__schema": "FunctionLikeSchema",
302
308
  "location": {
303
- "file": "button.tsx",
309
+ "filePath": "button.tsx",
304
310
  "line": 62,
305
311
  "character": 3
306
312
  },
@@ -311,7 +317,7 @@
311
317
  "returnType": {
312
318
  "__schema": "InferenceTypeSchema",
313
319
  "location": {
314
- "file": "button.tsx",
320
+ "filePath": "button.tsx",
315
321
  "line": 62,
316
322
  "character": 3
317
323
  },
@@ -323,7 +329,7 @@
323
329
  {
324
330
  "__schema": "FunctionLikeSchema",
325
331
  "location": {
326
- "file": "index.ts",
332
+ "filePath": "index.ts",
327
333
  "line": 19,
328
334
  "character": 1
329
335
  },
@@ -336,7 +342,7 @@
336
342
  "returnType": {
337
343
  "__schema": "InferenceTypeSchema",
338
344
  "location": {
339
- "file": "index.ts",
345
+ "filePath": "index.ts",
340
346
  "line": 19,
341
347
  "character": 1
342
348
  },
@@ -344,18 +350,19 @@
344
350
  }
345
351
  },
346
352
  {
347
- "__schema": "VariableSchema",
353
+ "__schema": "VariableLikeSchema",
348
354
  "location": {
349
- "file": "index.ts",
355
+ "filePath": "index.ts",
350
356
  "line": 21,
351
357
  "character": 14
352
358
  },
353
359
  "name": "a",
354
360
  "signature": "const a: 4",
361
+ "isOptional": false,
355
362
  "type": {
356
363
  "__schema": "InferenceTypeSchema",
357
364
  "location": {
358
- "file": "index.ts",
365
+ "filePath": "index.ts",
359
366
  "line": 21,
360
367
  "character": 14
361
368
  },
@@ -363,18 +370,19 @@
363
370
  }
364
371
  },
365
372
  {
366
- "__schema": "VariableSchema",
373
+ "__schema": "VariableLikeSchema",
367
374
  "location": {
368
- "file": "index.ts",
375
+ "filePath": "index.ts",
369
376
  "line": 22,
370
377
  "character": 3
371
378
  },
372
379
  "name": "b",
373
380
  "signature": "const b: 5",
381
+ "isOptional": false,
374
382
  "type": {
375
383
  "__schema": "LiteralTypeSchema",
376
384
  "location": {
377
- "file": "index.ts",
385
+ "filePath": "index.ts",
378
386
  "line": 22,
379
387
  "character": 6
380
388
  },
@@ -384,7 +392,7 @@
384
392
  {
385
393
  "__schema": "Module",
386
394
  "location": {
387
- "file": "button.composition.tsx",
395
+ "filePath": "button.composition.tsx",
388
396
  "line": 3,
389
397
  "character": 1
390
398
  },
@@ -392,7 +400,7 @@
392
400
  {
393
401
  "__schema": "FunctionLikeSchema",
394
402
  "location": {
395
- "file": "button.composition.tsx",
403
+ "filePath": "button.composition.tsx",
396
404
  "line": 6,
397
405
  "character": 14
398
406
  },
@@ -403,7 +411,7 @@
403
411
  "returnType": {
404
412
  "__schema": "InferenceTypeSchema",
405
413
  "location": {
406
- "file": "button.composition.tsx",
414
+ "filePath": "button.composition.tsx",
407
415
  "line": 6,
408
416
  "character": 14
409
417
  },
@@ -413,7 +421,7 @@
413
421
  {
414
422
  "__schema": "FunctionLikeSchema",
415
423
  "location": {
416
- "file": "button.composition.tsx",
424
+ "filePath": "button.composition.tsx",
417
425
  "line": 13,
418
426
  "character": 1
419
427
  },
@@ -426,15 +434,16 @@
426
434
  {
427
435
  "__schema": "ParameterSchema",
428
436
  "location": {
429
- "file": "button.composition.tsx",
437
+ "filePath": "button.composition.tsx",
430
438
  "line": 13,
431
439
  "character": 24
432
440
  },
433
441
  "name": "{ children = <BasicButton /> }",
442
+ "isOptional": false,
434
443
  "type": {
435
444
  "__schema": "TypeLiteralSchema",
436
445
  "location": {
437
- "file": "button.composition.tsx",
446
+ "filePath": "button.composition.tsx",
438
447
  "line": 13,
439
448
  "character": 24
440
449
  },
@@ -442,7 +451,7 @@
442
451
  {
443
452
  "__schema": "InferenceTypeSchema",
444
453
  "location": {
445
- "file": "button.composition.tsx",
454
+ "filePath": "button.composition.tsx",
446
455
  "line": 13,
447
456
  "character": 24
448
457
  },
@@ -456,7 +465,7 @@
456
465
  "returnType": {
457
466
  "__schema": "InferenceTypeSchema",
458
467
  "location": {
459
- "file": "button.composition.tsx",
468
+ "filePath": "button.composition.tsx",
460
469
  "line": 13,
461
470
  "character": 1
462
471
  },
@@ -465,7 +474,7 @@
465
474
  "doc": {
466
475
  "__schema": "DocSchema",
467
476
  "location": {
468
- "file": "button.composition.tsx",
477
+ "filePath": "button.composition.tsx",
469
478
  "line": 10,
470
479
  "character": 1
471
480
  },
@@ -475,7 +484,7 @@
475
484
  {
476
485
  "__schema": "FunctionLikeSchema",
477
486
  "location": {
478
- "file": "button.composition.tsx",
487
+ "filePath": "button.composition.tsx",
479
488
  "line": 17,
480
489
  "character": 14
481
490
  },
@@ -486,7 +495,7 @@
486
495
  "returnType": {
487
496
  "__schema": "InferenceTypeSchema",
488
497
  "location": {
489
- "file": "button.composition.tsx",
498
+ "filePath": "button.composition.tsx",
490
499
  "line": 17,
491
500
  "character": 14
492
501
  },
@@ -496,7 +505,7 @@
496
505
  {
497
506
  "__schema": "FunctionLikeSchema",
498
507
  "location": {
499
- "file": "button.composition.tsx",
508
+ "filePath": "button.composition.tsx",
500
509
  "line": 21,
501
510
  "character": 14
502
511
  },
@@ -507,7 +516,7 @@
507
516
  "returnType": {
508
517
  "__schema": "InferenceTypeSchema",
509
518
  "location": {
510
- "file": "button.composition.tsx",
519
+ "filePath": "button.composition.tsx",
511
520
  "line": 21,
512
521
  "character": 14
513
522
  },
@@ -517,7 +526,7 @@
517
526
  {
518
527
  "__schema": "FunctionLikeSchema",
519
528
  "location": {
520
- "file": "button.composition.tsx",
529
+ "filePath": "button.composition.tsx",
521
530
  "line": 30,
522
531
  "character": 14
523
532
  },
@@ -528,7 +537,7 @@
528
537
  "returnType": {
529
538
  "__schema": "InferenceTypeSchema",
530
539
  "location": {
531
- "file": "button.composition.tsx",
540
+ "filePath": "button.composition.tsx",
532
541
  "line": 30,
533
542
  "character": 14
534
543
  },
@@ -539,18 +548,19 @@
539
548
  "namespace": "Compositions"
540
549
  },
541
550
  {
542
- "__schema": "VariableSchema",
551
+ "__schema": "VariableLikeSchema",
543
552
  "location": {
544
- "file": "index.ts",
553
+ "filePath": "index.ts",
545
554
  "line": 26,
546
555
  "character": 14
547
556
  },
548
557
  "name": "HiThere",
549
558
  "signature": "const HiThere: \"HiThere\"",
559
+ "isOptional": false,
550
560
  "type": {
551
561
  "__schema": "InferenceTypeSchema",
552
562
  "location": {
553
- "file": "index.ts",
563
+ "filePath": "index.ts",
554
564
  "line": 26,
555
565
  "character": 14
556
566
  },
@@ -560,7 +570,7 @@
560
570
  {
561
571
  "__schema": "FunctionLikeSchema",
562
572
  "location": {
563
- "file": "index.ts",
573
+ "filePath": "index.ts",
564
574
  "line": 28,
565
575
  "character": 14
566
576
  },
@@ -571,7 +581,7 @@
571
581
  "returnType": {
572
582
  "__schema": "InferenceTypeSchema",
573
583
  "location": {
574
- "file": "index.ts",
584
+ "filePath": "index.ts",
575
585
  "line": 28,
576
586
  "character": 14
577
587
  },
@@ -579,18 +589,19 @@
579
589
  }
580
590
  },
581
591
  {
582
- "__schema": "VariableSchema",
592
+ "__schema": "VariableLikeSchema",
583
593
  "location": {
584
- "file": "index.ts",
594
+ "filePath": "index.ts",
585
595
  "line": 30,
586
596
  "character": 14
587
597
  },
588
598
  "name": "Array",
589
599
  "signature": "const Array: string[]",
600
+ "isOptional": false,
590
601
  "type": {
591
602
  "__schema": "TypeRefSchema",
592
603
  "location": {
593
- "file": "index.ts",
604
+ "filePath": "index.ts",
594
605
  "line": 30,
595
606
  "character": 14
596
607
  },
@@ -602,24 +613,25 @@
602
613
  "__schema": "ClassSchema",
603
614
  "className": "ClassSomething",
604
615
  "location": {
605
- "file": "index.ts",
616
+ "filePath": "index.ts",
606
617
  "line": 34,
607
618
  "character": 1
608
619
  },
609
620
  "members": [
610
621
  {
611
- "__schema": "VariableSchema",
622
+ "__schema": "VariableLikeSchema",
612
623
  "location": {
613
- "file": "index.ts",
624
+ "filePath": "index.ts",
614
625
  "line": 35,
615
626
  "character": 3
616
627
  },
617
628
  "name": "app",
618
629
  "signature": "(property) ClassSomething.app: string",
630
+ "isOptional": false,
619
631
  "type": {
620
632
  "__schema": "InferenceTypeSchema",
621
633
  "location": {
622
- "file": "index.ts",
634
+ "filePath": "index.ts",
623
635
  "line": 35,
624
636
  "character": 3
625
637
  },
@@ -629,7 +641,7 @@
629
641
  {
630
642
  "__schema": "ConstructorSchema",
631
643
  "location": {
632
- "file": "index.ts",
644
+ "filePath": "index.ts",
633
645
  "line": 36,
634
646
  "character": 3
635
647
  },
@@ -637,15 +649,16 @@
637
649
  {
638
650
  "__schema": "ParameterSchema",
639
651
  "location": {
640
- "file": "index.ts",
652
+ "filePath": "index.ts",
641
653
  "line": 36,
642
654
  "character": 15
643
655
  },
644
656
  "name": "da",
657
+ "isOptional": false,
645
658
  "type": {
646
659
  "__schema": "LiteralTypeSchema",
647
660
  "location": {
648
- "file": "index.ts",
661
+ "filePath": "index.ts",
649
662
  "line": 36,
650
663
  "character": 28
651
664
  },
@@ -657,7 +670,7 @@
657
670
  {
658
671
  "__schema": "FunctionLikeSchema",
659
672
  "location": {
660
- "file": "index.ts",
673
+ "filePath": "index.ts",
661
674
  "line": 38,
662
675
  "character": 3
663
676
  },
@@ -668,7 +681,7 @@
668
681
  "returnType": {
669
682
  "__schema": "InferenceTypeSchema",
670
683
  "location": {
671
- "file": "index.ts",
684
+ "filePath": "index.ts",
672
685
  "line": 38,
673
686
  "character": 3
674
687
  },
@@ -678,7 +691,7 @@
678
691
  {
679
692
  "__schema": "GetAccessorSchema",
680
693
  "location": {
681
- "file": "index.ts",
694
+ "filePath": "index.ts",
682
695
  "line": 41,
683
696
  "character": 3
684
697
  },
@@ -687,7 +700,7 @@
687
700
  "type": {
688
701
  "__schema": "InferenceTypeSchema",
689
702
  "location": {
690
- "file": "index.ts",
703
+ "filePath": "index.ts",
691
704
  "line": 41,
692
705
  "character": 3
693
706
  },
@@ -697,7 +710,7 @@
697
710
  {
698
711
  "__schema": "SetAccessorSchema",
699
712
  "location": {
700
- "file": "index.ts",
713
+ "filePath": "index.ts",
701
714
  "line": 45,
702
715
  "character": 3
703
716
  },
@@ -706,15 +719,16 @@
706
719
  "param": {
707
720
  "__schema": "ParameterSchema",
708
721
  "location": {
709
- "file": "index.ts",
722
+ "filePath": "index.ts",
710
723
  "line": 45,
711
724
  "character": 14
712
725
  },
713
726
  "name": "a",
727
+ "isOptional": false,
714
728
  "type": {
715
729
  "__schema": "KeywordTypeSchema",
716
730
  "location": {
717
- "file": "index.ts",
731
+ "filePath": "index.ts",
718
732
  "line": 45,
719
733
  "character": 17
720
734
  },
@@ -727,7 +741,7 @@
727
741
  {
728
742
  "__schema": "TypeSchema",
729
743
  "location": {
730
- "file": "index.ts",
744
+ "filePath": "index.ts",
731
745
  "line": 50,
732
746
  "character": 1
733
747
  },
@@ -736,7 +750,7 @@
736
750
  "type": {
737
751
  "__schema": "TypeLiteralSchema",
738
752
  "location": {
739
- "file": "index.ts",
753
+ "filePath": "index.ts",
740
754
  "line": 50,
741
755
  "character": 24
742
756
  },
@@ -744,7 +758,7 @@
744
758
  {
745
759
  "__schema": "IndexSignatureSchema",
746
760
  "location": {
747
- "file": "index.ts",
761
+ "filePath": "index.ts",
748
762
  "line": 50,
749
763
  "character": 26
750
764
  },
@@ -752,15 +766,16 @@
752
766
  {
753
767
  "__schema": "ParameterSchema",
754
768
  "location": {
755
- "file": "index.ts",
769
+ "filePath": "index.ts",
756
770
  "line": 50,
757
771
  "character": 27
758
772
  },
759
773
  "name": "key",
774
+ "isOptional": false,
760
775
  "type": {
761
776
  "__schema": "KeywordTypeSchema",
762
777
  "location": {
763
- "file": "index.ts",
778
+ "filePath": "index.ts",
764
779
  "line": 50,
765
780
  "character": 32
766
781
  },
@@ -771,7 +786,7 @@
771
786
  "type": {
772
787
  "__schema": "KeywordTypeSchema",
773
788
  "location": {
774
- "file": "index.ts",
789
+ "filePath": "index.ts",
775
790
  "line": 50,
776
791
  "character": 41
777
792
  },
@@ -784,25 +799,26 @@
784
799
  {
785
800
  "__schema": "InterfaceSchema",
786
801
  "location": {
787
- "file": "index.ts",
802
+ "filePath": "index.ts",
788
803
  "line": 52,
789
804
  "character": 1
790
805
  },
791
806
  "name": "Hello",
792
807
  "members": [
793
808
  {
794
- "__schema": "VariableSchema",
809
+ "__schema": "VariableLikeSchema",
795
810
  "location": {
796
- "file": "index.ts",
811
+ "filePath": "index.ts",
797
812
  "line": 53,
798
813
  "character": 3
799
814
  },
800
815
  "name": "propertySig",
801
816
  "signature": "(property) Hello.propertySig: () => void",
817
+ "isOptional": false,
802
818
  "type": {
803
819
  "__schema": "FunctionLikeSchema",
804
820
  "location": {
805
- "file": "index.ts",
821
+ "filePath": "index.ts",
806
822
  "line": 53,
807
823
  "character": 16
808
824
  },
@@ -813,7 +829,7 @@
813
829
  "returnType": {
814
830
  "__schema": "KeywordTypeSchema",
815
831
  "location": {
816
- "file": "index.ts",
832
+ "filePath": "index.ts",
817
833
  "line": 53,
818
834
  "character": 22
819
835
  },
@@ -824,7 +840,7 @@
824
840
  {
825
841
  "__schema": "FunctionLikeSchema",
826
842
  "location": {
827
- "file": "index.ts",
843
+ "filePath": "index.ts",
828
844
  "line": 54,
829
845
  "character": 3
830
846
  },
@@ -835,7 +851,7 @@
835
851
  "returnType": {
836
852
  "__schema": "KeywordTypeSchema",
837
853
  "location": {
838
- "file": "index.ts",
854
+ "filePath": "index.ts",
839
855
  "line": 54,
840
856
  "character": 16
841
857
  },
@@ -845,18 +861,19 @@
845
861
  ]
846
862
  },
847
863
  {
848
- "__schema": "VariableSchema",
864
+ "__schema": "VariableLikeSchema",
849
865
  "location": {
850
- "file": "index.ts",
866
+ "filePath": "index.ts",
851
867
  "line": 59,
852
868
  "character": 14
853
869
  },
854
870
  "name": "a1",
855
871
  "signature": "const a1: {\n a: number;\n b: number;\n}",
872
+ "isOptional": false,
856
873
  "type": {
857
874
  "__schema": "TypeQuerySchema",
858
875
  "location": {
859
- "file": "index.ts",
876
+ "filePath": "index.ts",
860
877
  "line": 59,
861
878
  "character": 18
862
879
  },
@@ -864,7 +881,7 @@
864
881
  "type": {
865
882
  "__schema": "InferenceTypeSchema",
866
883
  "location": {
867
- "file": "index.ts",
884
+ "filePath": "index.ts",
868
885
  "line": 59,
869
886
  "character": 25
870
887
  },
@@ -875,7 +892,7 @@
875
892
  {
876
893
  "__schema": "TypeSchema",
877
894
  "location": {
878
- "file": "index.ts",
895
+ "filePath": "index.ts",
879
896
  "line": 61,
880
897
  "character": 1
881
898
  },
@@ -884,7 +901,7 @@
884
901
  "type": {
885
902
  "__schema": "TypeOperatorSchema",
886
903
  "location": {
887
- "file": "index.ts",
904
+ "filePath": "index.ts",
888
905
  "line": 61,
889
906
  "character": 28
890
907
  },
@@ -892,7 +909,7 @@
892
909
  "type": {
893
910
  "__schema": "TypeQuerySchema",
894
911
  "location": {
895
- "file": "index.ts",
912
+ "filePath": "index.ts",
896
913
  "line": 61,
897
914
  "character": 34
898
915
  },
@@ -900,7 +917,7 @@
900
917
  "type": {
901
918
  "__schema": "InferenceTypeSchema",
902
919
  "location": {
903
- "file": "index.ts",
920
+ "filePath": "index.ts",
904
921
  "line": 61,
905
922
  "character": 41
906
923
  },
@@ -912,7 +929,7 @@
912
929
  {
913
930
  "__schema": "FunctionLikeSchema",
914
931
  "location": {
915
- "file": "index.ts",
932
+ "filePath": "index.ts",
916
933
  "line": 67,
917
934
  "character": 14
918
935
  },
@@ -923,15 +940,16 @@
923
940
  {
924
941
  "__schema": "ParameterSchema",
925
942
  "location": {
926
- "file": "index.ts",
943
+ "filePath": "index.ts",
927
944
  "line": 67,
928
945
  "character": 24
929
946
  },
930
947
  "name": "bar",
948
+ "isOptional": false,
931
949
  "type": {
932
950
  "__schema": "TypeRefSchema",
933
951
  "location": {
934
- "file": "index.ts",
952
+ "filePath": "index.ts",
935
953
  "line": 67,
936
954
  "character": 29
937
955
  },
@@ -942,7 +960,7 @@
942
960
  "returnType": {
943
961
  "__schema": "TypeRefSchema",
944
962
  "location": {
945
- "file": "index.ts",
963
+ "filePath": "index.ts",
946
964
  "line": 67,
947
965
  "character": 14
948
966
  },
@@ -952,7 +970,7 @@
952
970
  {
953
971
  "__schema": "FunctionLikeSchema",
954
972
  "location": {
955
- "file": "index.ts",
973
+ "filePath": "index.ts",
956
974
  "line": 69,
957
975
  "character": 14
958
976
  },
@@ -963,15 +981,16 @@
963
981
  {
964
982
  "__schema": "ParameterSchema",
965
983
  "location": {
966
- "file": "index.ts",
984
+ "filePath": "index.ts",
967
985
  "line": 69,
968
986
  "character": 23
969
987
  },
970
988
  "name": "[ a, b, c ]",
989
+ "isOptional": false,
971
990
  "type": {
972
991
  "__schema": "TupleTypeSchema",
973
992
  "location": {
974
- "file": "index.ts",
993
+ "filePath": "index.ts",
975
994
  "line": 69,
976
995
  "character": 34
977
996
  },
@@ -979,7 +998,7 @@
979
998
  {
980
999
  "__schema": "KeywordTypeSchema",
981
1000
  "location": {
982
- "file": "index.ts",
1001
+ "filePath": "index.ts",
983
1002
  "line": 69,
984
1003
  "character": 35
985
1004
  },
@@ -988,7 +1007,7 @@
988
1007
  {
989
1008
  "__schema": "TypeRefSchema",
990
1009
  "location": {
991
- "file": "index.ts",
1010
+ "filePath": "index.ts",
992
1011
  "line": 69,
993
1012
  "character": 43
994
1013
  },
@@ -997,7 +1016,7 @@
997
1016
  {
998
1017
  "__schema": "TypeRefSchema",
999
1018
  "location": {
1000
- "file": "index.ts",
1019
+ "filePath": "index.ts",
1001
1020
  "line": 69,
1002
1021
  "character": 53
1003
1022
  },
@@ -1007,7 +1026,7 @@
1007
1026
  {
1008
1027
  "__schema": "KeywordTypeSchema",
1009
1028
  "location": {
1010
- "file": "index.ts",
1029
+ "filePath": "index.ts",
1011
1030
  "line": 69,
1012
1031
  "character": 60
1013
1032
  },
@@ -1016,7 +1035,7 @@
1016
1035
  {
1017
1036
  "__schema": "KeywordTypeSchema",
1018
1037
  "location": {
1019
- "file": "index.ts",
1038
+ "filePath": "index.ts",
1020
1039
  "line": 69,
1021
1040
  "character": 68
1022
1041
  },
@@ -1031,7 +1050,7 @@
1031
1050
  "returnType": {
1032
1051
  "__schema": "InferenceTypeSchema",
1033
1052
  "location": {
1034
- "file": "index.ts",
1053
+ "filePath": "index.ts",
1035
1054
  "line": 69,
1036
1055
  "character": 14
1037
1056
  },
@@ -1041,7 +1060,7 @@
1041
1060
  {
1042
1061
  "__schema": "EnumSchema",
1043
1062
  "location": {
1044
- "file": "index.ts",
1063
+ "filePath": "index.ts",
1045
1064
  "line": 71,
1046
1065
  "character": 1
1047
1066
  },
@@ -1055,7 +1074,7 @@
1055
1074
  {
1056
1075
  "__schema": "FunctionLikeSchema",
1057
1076
  "location": {
1058
- "file": "index.ts",
1077
+ "filePath": "index.ts",
1059
1078
  "line": 77,
1060
1079
  "character": 1
1061
1080
  },
@@ -1069,7 +1088,7 @@
1069
1088
  "returnType": {
1070
1089
  "__schema": "TypeRefSchema",
1071
1090
  "location": {
1072
- "file": "index.ts",
1091
+ "filePath": "index.ts",
1073
1092
  "line": 77,
1074
1093
  "character": 37
1075
1094
  },
@@ -1079,7 +1098,7 @@
1079
1098
  {
1080
1099
  "__schema": "KeywordTypeSchema",
1081
1100
  "location": {
1082
- "file": "index.ts",
1101
+ "filePath": "index.ts",
1083
1102
  "line": 77,
1084
1103
  "character": 45
1085
1104
  },
@@ -1091,7 +1110,7 @@
1091
1110
  {
1092
1111
  "__schema": "TypeSchema",
1093
1112
  "location": {
1094
- "file": "index.ts",
1113
+ "filePath": "index.ts",
1095
1114
  "line": 84,
1096
1115
  "character": 1
1097
1116
  },
@@ -1100,7 +1119,7 @@
1100
1119
  "type": {
1101
1120
  "__schema": "InferenceTypeSchema",
1102
1121
  "location": {
1103
- "file": "index.ts",
1122
+ "filePath": "index.ts",
1104
1123
  "line": 84,
1105
1124
  "character": 31
1106
1125
  },
@@ -1110,7 +1129,7 @@
1110
1129
  {
1111
1130
  "__schema": "TypeSchema",
1112
1131
  "location": {
1113
- "file": "index.ts",
1132
+ "filePath": "index.ts",
1114
1133
  "line": 86,
1115
1134
  "character": 1
1116
1135
  },
@@ -1119,21 +1138,21 @@
1119
1138
  "type": {
1120
1139
  "__schema": "TypeArraySchema",
1121
1140
  "location": {
1122
- "file": "index.ts",
1141
+ "filePath": "index.ts",
1123
1142
  "line": 86,
1124
1143
  "character": 33
1125
1144
  },
1126
1145
  "type": {
1127
1146
  "__schema": "ParenthesizedTypeSchema",
1128
1147
  "location": {
1129
- "file": "index.ts",
1148
+ "filePath": "index.ts",
1130
1149
  "line": 86,
1131
1150
  "character": 33
1132
1151
  },
1133
1152
  "type": {
1134
1153
  "__schema": "TypeUnionSchema",
1135
1154
  "location": {
1136
- "file": "index.ts",
1155
+ "filePath": "index.ts",
1137
1156
  "line": 86,
1138
1157
  "character": 34
1139
1158
  },
@@ -1141,7 +1160,7 @@
1141
1160
  {
1142
1161
  "__schema": "InferenceTypeSchema",
1143
1162
  "location": {
1144
- "file": "index.ts",
1163
+ "filePath": "index.ts",
1145
1164
  "line": 86,
1146
1165
  "character": 34
1147
1166
  },
@@ -1150,7 +1169,7 @@
1150
1169
  {
1151
1170
  "__schema": "InferenceTypeSchema",
1152
1171
  "location": {
1153
- "file": "index.ts",
1172
+ "filePath": "index.ts",
1154
1173
  "line": 86,
1155
1174
  "character": 39
1156
1175
  },
@@ -1164,7 +1183,7 @@
1164
1183
  {
1165
1184
  "__schema": "FunctionLikeSchema",
1166
1185
  "location": {
1167
- "file": "index.ts",
1186
+ "filePath": "index.ts",
1168
1187
  "line": 88,
1169
1188
  "character": 1
1170
1189
  },
@@ -1177,15 +1196,16 @@
1177
1196
  {
1178
1197
  "__schema": "ParameterSchema",
1179
1198
  "location": {
1180
- "file": "index.ts",
1199
+ "filePath": "index.ts",
1181
1200
  "line": 88,
1182
1201
  "character": 33
1183
1202
  },
1184
1203
  "name": "str",
1204
+ "isOptional": false,
1185
1205
  "type": {
1186
1206
  "__schema": "KeywordTypeSchema",
1187
1207
  "location": {
1188
- "file": "index.ts",
1208
+ "filePath": "index.ts",
1189
1209
  "line": 88,
1190
1210
  "character": 38
1191
1211
  },
@@ -1196,7 +1216,7 @@
1196
1216
  "returnType": {
1197
1217
  "__schema": "TypePredicateSchema",
1198
1218
  "location": {
1199
- "file": "index.ts",
1219
+ "filePath": "index.ts",
1200
1220
  "line": 88,
1201
1221
  "character": 44
1202
1222
  },
@@ -1205,7 +1225,7 @@
1205
1225
  "type": {
1206
1226
  "__schema": "KeywordTypeSchema",
1207
1227
  "location": {
1208
- "file": "index.ts",
1228
+ "filePath": "index.ts",
1209
1229
  "line": 88,
1210
1230
  "character": 51
1211
1231
  },
@@ -1216,7 +1236,7 @@
1216
1236
  {
1217
1237
  "__schema": "FunctionLikeSchema",
1218
1238
  "location": {
1219
- "file": "index.ts",
1239
+ "filePath": "index.ts",
1220
1240
  "line": 92,
1221
1241
  "character": 1
1222
1242
  },
@@ -1229,15 +1249,16 @@
1229
1249
  {
1230
1250
  "__schema": "ParameterSchema",
1231
1251
  "location": {
1232
- "file": "index.ts",
1252
+ "filePath": "index.ts",
1233
1253
  "line": 92,
1234
1254
  "character": 39
1235
1255
  },
1236
1256
  "name": "condition",
1257
+ "isOptional": false,
1237
1258
  "type": {
1238
1259
  "__schema": "KeywordTypeSchema",
1239
1260
  "location": {
1240
- "file": "index.ts",
1261
+ "filePath": "index.ts",
1241
1262
  "line": 92,
1242
1263
  "character": 50
1243
1264
  },
@@ -1247,15 +1268,16 @@
1247
1268
  {
1248
1269
  "__schema": "ParameterSchema",
1249
1270
  "location": {
1250
- "file": "index.ts",
1271
+ "filePath": "index.ts",
1251
1272
  "line": 92,
1252
1273
  "character": 55
1253
1274
  },
1254
1275
  "name": "msg",
1276
+ "isOptional": true,
1255
1277
  "type": {
1256
1278
  "__schema": "KeywordTypeSchema",
1257
1279
  "location": {
1258
- "file": "index.ts",
1280
+ "filePath": "index.ts",
1259
1281
  "line": 92,
1260
1282
  "character": 61
1261
1283
  },
@@ -1266,7 +1288,7 @@
1266
1288
  "returnType": {
1267
1289
  "__schema": "TypePredicateSchema",
1268
1290
  "location": {
1269
- "file": "index.ts",
1291
+ "filePath": "index.ts",
1270
1292
  "line": 92,
1271
1293
  "character": 70
1272
1294
  },
@@ -1277,7 +1299,7 @@
1277
1299
  {
1278
1300
  "__schema": "FunctionLikeSchema",
1279
1301
  "location": {
1280
- "file": "index.ts",
1302
+ "filePath": "index.ts",
1281
1303
  "line": 94,
1282
1304
  "character": 1
1283
1305
  },
@@ -1291,15 +1313,16 @@
1291
1313
  {
1292
1314
  "__schema": "ParameterSchema",
1293
1315
  "location": {
1294
- "file": "index.ts",
1316
+ "filePath": "index.ts",
1295
1317
  "line": 94,
1296
1318
  "character": 45
1297
1319
  },
1298
1320
  "name": "{ prop = 1 }",
1321
+ "isOptional": false,
1299
1322
  "type": {
1300
1323
  "__schema": "TypeLiteralSchema",
1301
1324
  "location": {
1302
- "file": "index.ts",
1325
+ "filePath": "index.ts",
1303
1326
  "line": 94,
1304
1327
  "character": 45
1305
1328
  },
@@ -1307,7 +1330,7 @@
1307
1330
  {
1308
1331
  "__schema": "InferenceTypeSchema",
1309
1332
  "location": {
1310
- "file": "index.ts",
1333
+ "filePath": "index.ts",
1311
1334
  "line": 94,
1312
1335
  "character": 45
1313
1336
  },
@@ -1321,7 +1344,7 @@
1321
1344
  "returnType": {
1322
1345
  "__schema": "InferenceTypeSchema",
1323
1346
  "location": {
1324
- "file": "index.ts",
1347
+ "filePath": "index.ts",
1325
1348
  "line": 94,
1326
1349
  "character": 1
1327
1350
  },
@@ -1331,7 +1354,7 @@
1331
1354
  {
1332
1355
  "__schema": "FunctionLikeSchema",
1333
1356
  "location": {
1334
- "file": "index.ts",
1357
+ "filePath": "index.ts",
1335
1358
  "line": 97,
1336
1359
  "character": 1
1337
1360
  },
@@ -1345,15 +1368,16 @@
1345
1368
  {
1346
1369
  "__schema": "ParameterSchema",
1347
1370
  "location": {
1348
- "file": "index.ts",
1371
+ "filePath": "index.ts",
1349
1372
  "line": 97,
1350
1373
  "character": 44
1351
1374
  },
1352
1375
  "name": "[ prop ]",
1376
+ "isOptional": false,
1353
1377
  "type": {
1354
1378
  "__schema": "TupleTypeSchema",
1355
1379
  "location": {
1356
- "file": "index.ts",
1380
+ "filePath": "index.ts",
1357
1381
  "line": 97,
1358
1382
  "character": 52
1359
1383
  },
@@ -1361,7 +1385,7 @@
1361
1385
  {
1362
1386
  "__schema": "KeywordTypeSchema",
1363
1387
  "location": {
1364
- "file": "index.ts",
1388
+ "filePath": "index.ts",
1365
1389
  "line": 97,
1366
1390
  "character": 53
1367
1391
  },
@@ -1374,7 +1398,7 @@
1374
1398
  "returnType": {
1375
1399
  "__schema": "InferenceTypeSchema",
1376
1400
  "location": {
1377
- "file": "index.ts",
1401
+ "filePath": "index.ts",
1378
1402
  "line": 97,
1379
1403
  "character": 1
1380
1404
  },
@@ -1384,7 +1408,7 @@
1384
1408
  {
1385
1409
  "__schema": "TypeSchema",
1386
1410
  "location": {
1387
- "file": "index.ts",
1411
+ "filePath": "index.ts",
1388
1412
  "line": 104,
1389
1413
  "character": 1
1390
1414
  },
@@ -1393,14 +1417,14 @@
1393
1417
  "type": {
1394
1418
  "__schema": "IndexedAccessSchema",
1395
1419
  "location": {
1396
- "file": "index.ts",
1420
+ "filePath": "index.ts",
1397
1421
  "line": 104,
1398
1422
  "character": 33
1399
1423
  },
1400
1424
  "objectType": {
1401
1425
  "__schema": "InferenceTypeSchema",
1402
1426
  "location": {
1403
- "file": "index.ts",
1427
+ "filePath": "index.ts",
1404
1428
  "line": 104,
1405
1429
  "character": 33
1406
1430
  },
@@ -1409,7 +1433,7 @@
1409
1433
  "indexType": {
1410
1434
  "__schema": "LiteralTypeSchema",
1411
1435
  "location": {
1412
- "file": "index.ts",
1436
+ "filePath": "index.ts",
1413
1437
  "line": 104,
1414
1438
  "character": 40
1415
1439
  },
@@ -1420,25 +1444,26 @@
1420
1444
  {
1421
1445
  "__schema": "InterfaceSchema",
1422
1446
  "location": {
1423
- "file": "index.ts",
1447
+ "filePath": "index.ts",
1424
1448
  "line": 107,
1425
1449
  "character": 1
1426
1450
  },
1427
1451
  "name": "ComputedNameWithType",
1428
1452
  "members": [
1429
1453
  {
1430
- "__schema": "VariableSchema",
1454
+ "__schema": "VariableLikeSchema",
1431
1455
  "location": {
1432
- "file": "index.ts",
1456
+ "filePath": "index.ts",
1433
1457
  "line": 108,
1434
1458
  "character": 3
1435
1459
  },
1436
1460
  "name": "[computedName]",
1437
1461
  "signature": "",
1462
+ "isOptional": false,
1438
1463
  "type": {
1439
1464
  "__schema": "KeywordTypeSchema",
1440
1465
  "location": {
1441
- "file": "index.ts",
1466
+ "filePath": "index.ts",
1442
1467
  "line": 108,
1443
1468
  "character": 19
1444
1469
  },
@@ -1450,25 +1475,26 @@
1450
1475
  {
1451
1476
  "__schema": "InterfaceSchema",
1452
1477
  "location": {
1453
- "file": "index.ts",
1478
+ "filePath": "index.ts",
1454
1479
  "line": 110,
1455
1480
  "character": 1
1456
1481
  },
1457
1482
  "name": "ComputedNameNoType",
1458
1483
  "members": [
1459
1484
  {
1460
- "__schema": "VariableSchema",
1485
+ "__schema": "VariableLikeSchema",
1461
1486
  "location": {
1462
- "file": "index.ts",
1487
+ "filePath": "index.ts",
1463
1488
  "line": 111,
1464
1489
  "character": 3
1465
1490
  },
1466
1491
  "name": "[computedName]",
1467
1492
  "signature": "",
1493
+ "isOptional": false,
1468
1494
  "type": {
1469
1495
  "__schema": "InferenceTypeSchema",
1470
1496
  "location": {
1471
- "file": "index.ts",
1497
+ "filePath": "index.ts",
1472
1498
  "line": 111,
1473
1499
  "character": 3
1474
1500
  },
@@ -1480,7 +1506,7 @@
1480
1506
  {
1481
1507
  "__schema": "TypeSchema",
1482
1508
  "location": {
1483
- "file": "index.ts",
1509
+ "filePath": "index.ts",
1484
1510
  "line": 116,
1485
1511
  "character": 1
1486
1512
  },
@@ -1489,7 +1515,7 @@
1489
1515
  "type": {
1490
1516
  "__schema": "TemplateLiteralTypeSchema",
1491
1517
  "location": {
1492
- "file": "index.ts",
1518
+ "filePath": "index.ts",
1493
1519
  "line": 116,
1494
1520
  "character": 35
1495
1521
  },
@@ -1498,7 +1524,7 @@
1498
1524
  {
1499
1525
  "__schema": "TemplateLiteralTypeSpanSchema",
1500
1526
  "location": {
1501
- "file": "index.ts",
1527
+ "filePath": "index.ts",
1502
1528
  "line": 116,
1503
1529
  "character": 44
1504
1530
  },
@@ -1506,7 +1532,7 @@
1506
1532
  "type": {
1507
1533
  "__schema": "InferenceTypeSchema",
1508
1534
  "location": {
1509
- "file": "index.ts",
1535
+ "filePath": "index.ts",
1510
1536
  "line": 116,
1511
1537
  "character": 44
1512
1538
  },
@@ -1516,7 +1542,7 @@
1516
1542
  {
1517
1543
  "__schema": "TemplateLiteralTypeSpanSchema",
1518
1544
  "location": {
1519
- "file": "index.ts",
1545
+ "filePath": "index.ts",
1520
1546
  "line": 116,
1521
1547
  "character": 57
1522
1548
  },
@@ -1524,7 +1550,7 @@
1524
1550
  "type": {
1525
1551
  "__schema": "InferenceTypeSchema",
1526
1552
  "location": {
1527
- "file": "index.ts",
1553
+ "filePath": "index.ts",
1528
1554
  "line": 116,
1529
1555
  "character": 57
1530
1556
  },
@@ -1537,7 +1563,7 @@
1537
1563
  {
1538
1564
  "__schema": "InterfaceSchema",
1539
1565
  "location": {
1540
- "file": "index.ts",
1566
+ "filePath": "index.ts",
1541
1567
  "line": 118,
1542
1568
  "character": 1
1543
1569
  },
@@ -1546,7 +1572,7 @@
1546
1572
  {
1547
1573
  "__schema": "FunctionLikeSchema",
1548
1574
  "location": {
1549
- "file": "index.ts",
1575
+ "filePath": "index.ts",
1550
1576
  "line": 119,
1551
1577
  "character": 3
1552
1578
  },
@@ -1560,15 +1586,16 @@
1560
1586
  {
1561
1587
  "__schema": "ParameterSchema",
1562
1588
  "location": {
1563
- "file": "index.ts",
1589
+ "filePath": "index.ts",
1564
1590
  "line": 119,
1565
1591
  "character": 7
1566
1592
  },
1567
1593
  "name": "a",
1594
+ "isOptional": false,
1568
1595
  "type": {
1569
1596
  "__schema": "KeywordTypeSchema",
1570
1597
  "location": {
1571
- "file": "index.ts",
1598
+ "filePath": "index.ts",
1572
1599
  "line": 119,
1573
1600
  "character": 10
1574
1601
  },
@@ -1579,7 +1606,7 @@
1579
1606
  "returnType": {
1580
1607
  "__schema": "InferenceTypeSchema",
1581
1608
  "location": {
1582
- "file": "index.ts",
1609
+ "filePath": "index.ts",
1583
1610
  "line": 119,
1584
1611
  "character": 19
1585
1612
  },