@teambit/schema 0.0.738 → 0.0.741

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.
@@ -0,0 +1,1438 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "file": "index.ts",
5
+ "line": 13,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "Module",
10
+ "location": {
11
+ "file": "index.ts",
12
+ "line": 13,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "FunctionLikeSchema",
18
+ "location": {
19
+ "file": "index.ts",
20
+ "line": 13,
21
+ "character": 1
22
+ },
23
+ "name": "myFunc",
24
+ "signature": "function myFunc(a?: number, b?: number): number",
25
+ "modifiers": [
26
+ "export"
27
+ ],
28
+ "params": [
29
+ {
30
+ "__schema": "ParameterSchema",
31
+ "location": {
32
+ "file": "index.ts",
33
+ "line": 13,
34
+ "character": 24
35
+ },
36
+ "name": "a",
37
+ "defaultValue": "4",
38
+ "type": {
39
+ "__schema": "InferenceTypeSchema",
40
+ "location": {
41
+ "file": "index.ts",
42
+ "line": 13,
43
+ "character": 24
44
+ },
45
+ "type": "number"
46
+ }
47
+ },
48
+ {
49
+ "__schema": "ParameterSchema",
50
+ "location": {
51
+ "file": "index.ts",
52
+ "line": 13,
53
+ "character": 31
54
+ },
55
+ "name": "b",
56
+ "defaultValue": "5",
57
+ "type": {
58
+ "__schema": "InferenceTypeSchema",
59
+ "location": {
60
+ "file": "index.ts",
61
+ "line": 13,
62
+ "character": 31
63
+ },
64
+ "type": "number"
65
+ }
66
+ }
67
+ ],
68
+ "returnType": {
69
+ "__schema": "KeywordTypeSchema",
70
+ "location": {
71
+ "file": "index.ts",
72
+ "line": 13,
73
+ "character": 39
74
+ },
75
+ "name": "number"
76
+ }
77
+ },
78
+ {
79
+ "__schema": "TypeSchema",
80
+ "location": {
81
+ "file": "button.tsx",
82
+ "line": 7,
83
+ "character": 1
84
+ },
85
+ "name": "ButtonElementType",
86
+ "signature": "type ButtonElementType = \"a\" | \"button\"",
87
+ "type": {
88
+ "__schema": "TypeUnionSchema",
89
+ "location": {
90
+ "file": "button.tsx",
91
+ "line": 7,
92
+ "character": 33
93
+ },
94
+ "types": [
95
+ {
96
+ "__schema": "LiteralTypeSchema",
97
+ "location": {
98
+ "file": "button.tsx",
99
+ "line": 7,
100
+ "character": 33
101
+ },
102
+ "name": "'a'"
103
+ },
104
+ {
105
+ "__schema": "LiteralTypeSchema",
106
+ "location": {
107
+ "file": "button.tsx",
108
+ "line": 7,
109
+ "character": 39
110
+ },
111
+ "name": "'button'"
112
+ }
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "__schema": "TypeSchema",
118
+ "location": {
119
+ "file": "button.tsx",
120
+ "line": 9,
121
+ "character": 1
122
+ },
123
+ "name": "ButtonProps",
124
+ "signature": "type ButtonProps = any",
125
+ "type": {
126
+ "__schema": "TypeIntersectionSchema",
127
+ "location": {
128
+ "file": "button.tsx",
129
+ "line": 9,
130
+ "character": 27
131
+ },
132
+ "types": [
133
+ {
134
+ "__schema": "TypeLiteralSchema",
135
+ "location": {
136
+ "file": "button.tsx",
137
+ "line": 9,
138
+ "character": 27
139
+ },
140
+ "members": [
141
+ {
142
+ "__schema": "VariableSchema",
143
+ "location": {
144
+ "file": "button.tsx",
145
+ "line": 13,
146
+ "character": 3
147
+ },
148
+ "name": "children",
149
+ "signature": "(property) children: any",
150
+ "type": {
151
+ "__schema": "InferenceTypeSchema",
152
+ "location": {
153
+ "file": "button.tsx",
154
+ "line": 13,
155
+ "character": 13
156
+ }
157
+ }
158
+ },
159
+ {
160
+ "__schema": "VariableSchema",
161
+ "location": {
162
+ "file": "button.tsx",
163
+ "line": 18,
164
+ "character": 3
165
+ },
166
+ "name": "href",
167
+ "signature": "(property) href?: string",
168
+ "type": {
169
+ "__schema": "KeywordTypeSchema",
170
+ "location": {
171
+ "file": "button.tsx",
172
+ "line": 18,
173
+ "character": 10
174
+ },
175
+ "name": "string"
176
+ }
177
+ },
178
+ {
179
+ "__schema": "VariableSchema",
180
+ "location": {
181
+ "file": "button.tsx",
182
+ "line": 23,
183
+ "character": 3
184
+ },
185
+ "name": "className",
186
+ "signature": "(property) className?: string",
187
+ "type": {
188
+ "__schema": "KeywordTypeSchema",
189
+ "location": {
190
+ "file": "button.tsx",
191
+ "line": 23,
192
+ "character": 15
193
+ },
194
+ "name": "string"
195
+ }
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "__schema": "InferenceTypeSchema",
201
+ "location": {
202
+ "file": "button.tsx",
203
+ "line": 24,
204
+ "character": 5
205
+ }
206
+ }
207
+ ]
208
+ }
209
+ },
210
+ {
211
+ "__schema": "FunctionLikeSchema",
212
+ "location": {
213
+ "file": "button.tsx",
214
+ "line": 26,
215
+ "character": 1
216
+ },
217
+ "name": "Button",
218
+ "signature": "function Button(props: ButtonProps): any",
219
+ "modifiers": [
220
+ "export"
221
+ ],
222
+ "params": [
223
+ {
224
+ "__schema": "ParameterSchema",
225
+ "location": {
226
+ "file": "button.tsx",
227
+ "line": 26,
228
+ "character": 24
229
+ },
230
+ "name": "props",
231
+ "type": {
232
+ "__schema": "TypeRefSchema",
233
+ "location": {
234
+ "file": "button.tsx",
235
+ "line": 26,
236
+ "character": 31
237
+ },
238
+ "name": "ButtonProps"
239
+ }
240
+ }
241
+ ],
242
+ "returnType": {
243
+ "__schema": "InferenceTypeSchema",
244
+ "location": {
245
+ "file": "button.tsx",
246
+ "line": 26,
247
+ "character": 1
248
+ },
249
+ "type": "any"
250
+ }
251
+ },
252
+ {
253
+ "__schema": "ClassSchema",
254
+ "className": "Bar",
255
+ "location": {
256
+ "file": "button.tsx",
257
+ "line": 61,
258
+ "character": 1
259
+ },
260
+ "members": [
261
+ {
262
+ "__schema": "FunctionLikeSchema",
263
+ "location": {
264
+ "file": "button.tsx",
265
+ "line": 62,
266
+ "character": 3
267
+ },
268
+ "name": "foo",
269
+ "signature": "(method) Bar.foo(): void",
270
+ "modifiers": [],
271
+ "params": [],
272
+ "returnType": {
273
+ "__schema": "InferenceTypeSchema",
274
+ "location": {
275
+ "file": "button.tsx",
276
+ "line": 62,
277
+ "character": 3
278
+ },
279
+ "type": "void"
280
+ }
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "__schema": "FunctionLikeSchema",
286
+ "location": {
287
+ "file": "index.ts",
288
+ "line": 19,
289
+ "character": 1
290
+ },
291
+ "name": "Hi",
292
+ "signature": "function Hi(): void",
293
+ "modifiers": [
294
+ "export"
295
+ ],
296
+ "params": [],
297
+ "returnType": {
298
+ "__schema": "InferenceTypeSchema",
299
+ "location": {
300
+ "file": "index.ts",
301
+ "line": 19,
302
+ "character": 1
303
+ },
304
+ "type": "void"
305
+ }
306
+ },
307
+ {
308
+ "__schema": "VariableSchema",
309
+ "location": {
310
+ "file": "index.ts",
311
+ "line": 21,
312
+ "character": 14
313
+ },
314
+ "name": "a",
315
+ "signature": "const a: 4",
316
+ "type": {
317
+ "__schema": "InferenceTypeSchema",
318
+ "location": {
319
+ "file": "index.ts",
320
+ "line": 21,
321
+ "character": 14
322
+ },
323
+ "type": "4"
324
+ }
325
+ },
326
+ {
327
+ "__schema": "VariableSchema",
328
+ "location": {
329
+ "file": "index.ts",
330
+ "line": 22,
331
+ "character": 3
332
+ },
333
+ "name": "b",
334
+ "signature": "const b: 5",
335
+ "type": {
336
+ "__schema": "LiteralTypeSchema",
337
+ "location": {
338
+ "file": "index.ts",
339
+ "line": 22,
340
+ "character": 6
341
+ },
342
+ "name": "5"
343
+ }
344
+ },
345
+ {
346
+ "__schema": "Module",
347
+ "location": {
348
+ "file": "button.composition.tsx",
349
+ "line": 3,
350
+ "character": 1
351
+ },
352
+ "exports": [
353
+ {
354
+ "__schema": "FunctionLikeSchema",
355
+ "location": {
356
+ "file": "button.composition.tsx",
357
+ "line": 6,
358
+ "character": 14
359
+ },
360
+ "name": "BasicButton",
361
+ "signature": "const BasicButton: () => any",
362
+ "modifiers": [],
363
+ "params": [],
364
+ "returnType": {
365
+ "__schema": "InferenceTypeSchema",
366
+ "location": {
367
+ "file": "button.composition.tsx",
368
+ "line": 6,
369
+ "character": 14
370
+ },
371
+ "type": "any"
372
+ }
373
+ },
374
+ {
375
+ "__schema": "FunctionLikeSchema",
376
+ "location": {
377
+ "file": "button.composition.tsx",
378
+ "line": 10,
379
+ "character": 14
380
+ },
381
+ "name": "ButtonWithCustomStyles",
382
+ "signature": "const ButtonWithCustomStyles: () => any",
383
+ "modifiers": [],
384
+ "params": [],
385
+ "returnType": {
386
+ "__schema": "InferenceTypeSchema",
387
+ "location": {
388
+ "file": "button.composition.tsx",
389
+ "line": 10,
390
+ "character": 14
391
+ },
392
+ "type": "any"
393
+ }
394
+ },
395
+ {
396
+ "__schema": "FunctionLikeSchema",
397
+ "location": {
398
+ "file": "button.composition.tsx",
399
+ "line": 14,
400
+ "character": 14
401
+ },
402
+ "name": "ButtonWithIcon",
403
+ "signature": "const ButtonWithIcon: () => any",
404
+ "modifiers": [],
405
+ "params": [],
406
+ "returnType": {
407
+ "__schema": "InferenceTypeSchema",
408
+ "location": {
409
+ "file": "button.composition.tsx",
410
+ "line": 14,
411
+ "character": 14
412
+ },
413
+ "type": "any"
414
+ }
415
+ },
416
+ {
417
+ "__schema": "FunctionLikeSchema",
418
+ "location": {
419
+ "file": "button.composition.tsx",
420
+ "line": 23,
421
+ "character": 14
422
+ },
423
+ "name": "ButtonAsALink",
424
+ "signature": "const ButtonAsALink: () => any",
425
+ "modifiers": [],
426
+ "params": [],
427
+ "returnType": {
428
+ "__schema": "InferenceTypeSchema",
429
+ "location": {
430
+ "file": "button.composition.tsx",
431
+ "line": 23,
432
+ "character": 14
433
+ },
434
+ "type": "any"
435
+ }
436
+ }
437
+ ],
438
+ "namespace": "Compositions"
439
+ },
440
+ {
441
+ "__schema": "VariableSchema",
442
+ "location": {
443
+ "file": "index.ts",
444
+ "line": 26,
445
+ "character": 14
446
+ },
447
+ "name": "HiThere",
448
+ "signature": "const HiThere: \"HiThere\"",
449
+ "type": {
450
+ "__schema": "InferenceTypeSchema",
451
+ "location": {
452
+ "file": "index.ts",
453
+ "line": 26,
454
+ "character": 14
455
+ },
456
+ "type": "\"HiThere\""
457
+ }
458
+ },
459
+ {
460
+ "__schema": "FunctionLikeSchema",
461
+ "location": {
462
+ "file": "index.ts",
463
+ "line": 28,
464
+ "character": 14
465
+ },
466
+ "name": "Function",
467
+ "signature": "const Function: () => void",
468
+ "modifiers": [],
469
+ "params": [],
470
+ "returnType": {
471
+ "__schema": "InferenceTypeSchema",
472
+ "location": {
473
+ "file": "index.ts",
474
+ "line": 28,
475
+ "character": 14
476
+ },
477
+ "type": "void"
478
+ }
479
+ },
480
+ {
481
+ "__schema": "VariableSchema",
482
+ "location": {
483
+ "file": "index.ts",
484
+ "line": 30,
485
+ "character": 14
486
+ },
487
+ "name": "Array",
488
+ "signature": "const Array: string[]",
489
+ "type": {
490
+ "__schema": "TypeRefSchema",
491
+ "location": {
492
+ "file": "index.ts",
493
+ "line": 30,
494
+ "character": 14
495
+ },
496
+ "name": "string[]",
497
+ "packageName": ""
498
+ }
499
+ },
500
+ {
501
+ "__schema": "ClassSchema",
502
+ "className": "ClassSomething",
503
+ "location": {
504
+ "file": "index.ts",
505
+ "line": 34,
506
+ "character": 1
507
+ },
508
+ "members": [
509
+ {
510
+ "__schema": "VariableSchema",
511
+ "location": {
512
+ "file": "index.ts",
513
+ "line": 35,
514
+ "character": 3
515
+ },
516
+ "name": "app",
517
+ "signature": "(property) ClassSomething.app: string",
518
+ "type": {
519
+ "__schema": "InferenceTypeSchema",
520
+ "location": {
521
+ "file": "index.ts",
522
+ "line": 35,
523
+ "character": 3
524
+ },
525
+ "type": "string"
526
+ }
527
+ },
528
+ {
529
+ "__schema": "ConstructorSchema",
530
+ "location": {
531
+ "file": "index.ts",
532
+ "line": 36,
533
+ "character": 3
534
+ },
535
+ "params": [
536
+ {
537
+ "__schema": "ParameterSchema",
538
+ "location": {
539
+ "file": "index.ts",
540
+ "line": 36,
541
+ "character": 15
542
+ },
543
+ "name": "da",
544
+ "type": {
545
+ "__schema": "LiteralTypeSchema",
546
+ "location": {
547
+ "file": "index.ts",
548
+ "line": 36,
549
+ "character": 28
550
+ },
551
+ "name": "'dsa'"
552
+ }
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "__schema": "FunctionLikeSchema",
558
+ "location": {
559
+ "file": "index.ts",
560
+ "line": 38,
561
+ "character": 3
562
+ },
563
+ "name": "a",
564
+ "signature": "(method) ClassSomething.a(): Foo",
565
+ "modifiers": [],
566
+ "params": [],
567
+ "returnType": {
568
+ "__schema": "InferenceTypeSchema",
569
+ "location": {
570
+ "file": "index.ts",
571
+ "line": 38,
572
+ "character": 3
573
+ },
574
+ "type": "Foo"
575
+ }
576
+ },
577
+ {
578
+ "__schema": "GetAccessorSchema",
579
+ "location": {
580
+ "file": "index.ts",
581
+ "line": 41,
582
+ "character": 3
583
+ },
584
+ "name": "getter",
585
+ "signature": "(property) ClassSomething.getter: string",
586
+ "type": {
587
+ "__schema": "InferenceTypeSchema",
588
+ "location": {
589
+ "file": "index.ts",
590
+ "line": 41,
591
+ "character": 3
592
+ },
593
+ "type": "string"
594
+ }
595
+ },
596
+ {
597
+ "__schema": "SetAccessorSchema",
598
+ "location": {
599
+ "file": "index.ts",
600
+ "line": 45,
601
+ "character": 3
602
+ },
603
+ "name": "setter",
604
+ "signature": "(property) ClassSomething.setter: boolean",
605
+ "param": {
606
+ "__schema": "ParameterSchema",
607
+ "location": {
608
+ "file": "index.ts",
609
+ "line": 45,
610
+ "character": 14
611
+ },
612
+ "name": "a",
613
+ "type": {
614
+ "__schema": "KeywordTypeSchema",
615
+ "location": {
616
+ "file": "index.ts",
617
+ "line": 45,
618
+ "character": 17
619
+ },
620
+ "name": "boolean"
621
+ }
622
+ }
623
+ }
624
+ ]
625
+ },
626
+ {
627
+ "__schema": "TypeSchema",
628
+ "location": {
629
+ "file": "index.ts",
630
+ "line": 50,
631
+ "character": 1
632
+ },
633
+ "name": "IndexSig",
634
+ "signature": "type IndexSig = {\n [key: string]: boolean;\n}",
635
+ "type": {
636
+ "__schema": "TypeLiteralSchema",
637
+ "location": {
638
+ "file": "index.ts",
639
+ "line": 50,
640
+ "character": 24
641
+ },
642
+ "members": [
643
+ {
644
+ "__schema": "IndexSignatureSchema",
645
+ "location": {
646
+ "file": "index.ts",
647
+ "line": 50,
648
+ "character": 26
649
+ },
650
+ "params": [
651
+ {
652
+ "__schema": "ParameterSchema",
653
+ "location": {
654
+ "file": "index.ts",
655
+ "line": 50,
656
+ "character": 27
657
+ },
658
+ "name": "key",
659
+ "type": {
660
+ "__schema": "KeywordTypeSchema",
661
+ "location": {
662
+ "file": "index.ts",
663
+ "line": 50,
664
+ "character": 32
665
+ },
666
+ "name": "string"
667
+ }
668
+ }
669
+ ],
670
+ "type": {
671
+ "__schema": "KeywordTypeSchema",
672
+ "location": {
673
+ "file": "index.ts",
674
+ "line": 50,
675
+ "character": 41
676
+ },
677
+ "name": "boolean"
678
+ }
679
+ }
680
+ ]
681
+ }
682
+ },
683
+ {
684
+ "__schema": "InterfaceSchema",
685
+ "location": {
686
+ "file": "index.ts",
687
+ "line": 52,
688
+ "character": 1
689
+ },
690
+ "name": "Hello",
691
+ "members": [
692
+ {
693
+ "__schema": "VariableSchema",
694
+ "location": {
695
+ "file": "index.ts",
696
+ "line": 53,
697
+ "character": 3
698
+ },
699
+ "name": "propertySig",
700
+ "signature": "(property) Hello.propertySig: () => void",
701
+ "type": {
702
+ "__schema": "FunctionLikeSchema",
703
+ "location": {
704
+ "file": "index.ts",
705
+ "line": 53,
706
+ "character": 16
707
+ },
708
+ "name": "",
709
+ "signature": "",
710
+ "modifiers": [],
711
+ "params": [],
712
+ "returnType": {
713
+ "__schema": "KeywordTypeSchema",
714
+ "location": {
715
+ "file": "index.ts",
716
+ "line": 53,
717
+ "character": 22
718
+ },
719
+ "name": "void"
720
+ }
721
+ }
722
+ },
723
+ {
724
+ "__schema": "FunctionLikeSchema",
725
+ "location": {
726
+ "file": "index.ts",
727
+ "line": 54,
728
+ "character": 3
729
+ },
730
+ "name": "methodSig",
731
+ "signature": "(method) Hello.methodSig(): string",
732
+ "modifiers": [],
733
+ "params": [],
734
+ "returnType": {
735
+ "__schema": "KeywordTypeSchema",
736
+ "location": {
737
+ "file": "index.ts",
738
+ "line": 54,
739
+ "character": 16
740
+ },
741
+ "name": "string"
742
+ }
743
+ }
744
+ ]
745
+ },
746
+ {
747
+ "__schema": "VariableSchema",
748
+ "location": {
749
+ "file": "index.ts",
750
+ "line": 59,
751
+ "character": 14
752
+ },
753
+ "name": "a1",
754
+ "signature": "const a1: {\n a: number;\n b: number;\n}",
755
+ "type": {
756
+ "__schema": "TypeQuerySchema",
757
+ "location": {
758
+ "file": "index.ts",
759
+ "line": 59,
760
+ "character": 18
761
+ },
762
+ "signature": "const obj: {\n a: number;\n b: number;\n}",
763
+ "type": {
764
+ "__schema": "InferenceTypeSchema",
765
+ "location": {
766
+ "file": "index.ts",
767
+ "line": 59,
768
+ "character": 25
769
+ },
770
+ "type": "{\n a: number;\n b: number;\n}"
771
+ }
772
+ }
773
+ },
774
+ {
775
+ "__schema": "TypeSchema",
776
+ "location": {
777
+ "file": "index.ts",
778
+ "line": 61,
779
+ "character": 1
780
+ },
781
+ "name": "TypeOperator",
782
+ "signature": "type TypeOperator = \"a\" | \"b\"",
783
+ "type": {
784
+ "__schema": "TypeOperatorSchema",
785
+ "location": {
786
+ "file": "index.ts",
787
+ "line": 61,
788
+ "character": 28
789
+ },
790
+ "operatorName": "keyof",
791
+ "type": {
792
+ "__schema": "TypeQuerySchema",
793
+ "location": {
794
+ "file": "index.ts",
795
+ "line": 61,
796
+ "character": 34
797
+ },
798
+ "signature": "const obj: {\n a: number;\n b: number;\n}",
799
+ "type": {
800
+ "__schema": "InferenceTypeSchema",
801
+ "location": {
802
+ "file": "index.ts",
803
+ "line": 61,
804
+ "character": 41
805
+ },
806
+ "type": "{\n a: number;\n b: number;\n}"
807
+ }
808
+ }
809
+ }
810
+ },
811
+ {
812
+ "__schema": "FunctionLikeSchema",
813
+ "location": {
814
+ "file": "index.ts",
815
+ "line": 67,
816
+ "character": 14
817
+ },
818
+ "name": "getBar",
819
+ "signature": "const getBar: (bar: Bar) => Bar",
820
+ "modifiers": [],
821
+ "params": [
822
+ {
823
+ "__schema": "ParameterSchema",
824
+ "location": {
825
+ "file": "index.ts",
826
+ "line": 67,
827
+ "character": 24
828
+ },
829
+ "name": "bar",
830
+ "type": {
831
+ "__schema": "TypeRefSchema",
832
+ "location": {
833
+ "file": "index.ts",
834
+ "line": 67,
835
+ "character": 29
836
+ },
837
+ "name": "Bar"
838
+ }
839
+ }
840
+ ],
841
+ "returnType": {
842
+ "__schema": "TypeRefSchema",
843
+ "location": {
844
+ "file": "index.ts",
845
+ "line": 67,
846
+ "character": 14
847
+ },
848
+ "name": "Bar"
849
+ }
850
+ },
851
+ {
852
+ "__schema": "FunctionLikeSchema",
853
+ "location": {
854
+ "file": "index.ts",
855
+ "line": 69,
856
+ "character": 14
857
+ },
858
+ "name": "tuple",
859
+ "signature": "const tuple: ([a, b, c]: [string, Function, Record<string, any>]) => void",
860
+ "modifiers": [],
861
+ "params": [
862
+ {
863
+ "__schema": "ParameterSchema",
864
+ "location": {
865
+ "file": "index.ts",
866
+ "line": 69,
867
+ "character": 23
868
+ },
869
+ "name": "[ a, b, c ]",
870
+ "type": {
871
+ "__schema": "TupleTypeSchema",
872
+ "location": {
873
+ "file": "index.ts",
874
+ "line": 69,
875
+ "character": 34
876
+ },
877
+ "elements": [
878
+ {
879
+ "__schema": "KeywordTypeSchema",
880
+ "location": {
881
+ "file": "index.ts",
882
+ "line": 69,
883
+ "character": 35
884
+ },
885
+ "name": "string"
886
+ },
887
+ {
888
+ "__schema": "TypeRefSchema",
889
+ "location": {
890
+ "file": "index.ts",
891
+ "line": 69,
892
+ "character": 43
893
+ },
894
+ "name": "Function"
895
+ },
896
+ {
897
+ "__schema": "TypeRefSchema",
898
+ "location": {
899
+ "file": "index.ts",
900
+ "line": 69,
901
+ "character": 53
902
+ },
903
+ "name": "Record",
904
+ "packageName": "",
905
+ "typeArgs": [
906
+ {
907
+ "__schema": "KeywordTypeSchema",
908
+ "location": {
909
+ "file": "index.ts",
910
+ "line": 69,
911
+ "character": 60
912
+ },
913
+ "name": "string"
914
+ },
915
+ {
916
+ "__schema": "KeywordTypeSchema",
917
+ "location": {
918
+ "file": "index.ts",
919
+ "line": 69,
920
+ "character": 68
921
+ },
922
+ "name": "any"
923
+ }
924
+ ]
925
+ }
926
+ ]
927
+ }
928
+ }
929
+ ],
930
+ "returnType": {
931
+ "__schema": "InferenceTypeSchema",
932
+ "location": {
933
+ "file": "index.ts",
934
+ "line": 69,
935
+ "character": 14
936
+ },
937
+ "type": "void"
938
+ }
939
+ },
940
+ {
941
+ "__schema": "EnumSchema",
942
+ "location": {
943
+ "file": "index.ts",
944
+ "line": 71,
945
+ "character": 1
946
+ },
947
+ "name": "Food",
948
+ "members": [
949
+ "Falafel",
950
+ "Hummus",
951
+ "Tahini"
952
+ ]
953
+ },
954
+ {
955
+ "__schema": "FunctionLikeSchema",
956
+ "location": {
957
+ "file": "index.ts",
958
+ "line": 77,
959
+ "character": 1
960
+ },
961
+ "name": "getPromise",
962
+ "signature": "function getPromise(): Promise<string>",
963
+ "modifiers": [
964
+ "export",
965
+ "async"
966
+ ],
967
+ "params": [],
968
+ "returnType": {
969
+ "__schema": "TypeRefSchema",
970
+ "location": {
971
+ "file": "index.ts",
972
+ "line": 77,
973
+ "character": 37
974
+ },
975
+ "name": "Promise",
976
+ "packageName": "",
977
+ "typeArgs": [
978
+ {
979
+ "__schema": "KeywordTypeSchema",
980
+ "location": {
981
+ "file": "index.ts",
982
+ "line": 77,
983
+ "character": 45
984
+ },
985
+ "name": "string"
986
+ }
987
+ ]
988
+ }
989
+ },
990
+ {
991
+ "__schema": "TypeSchema",
992
+ "location": {
993
+ "file": "index.ts",
994
+ "line": 84,
995
+ "character": 1
996
+ },
997
+ "name": "TypeRefWithArgs",
998
+ "signature": "type TypeRefWithArgs = T3<T1, T2>",
999
+ "type": {
1000
+ "__schema": "InferenceTypeSchema",
1001
+ "location": {
1002
+ "file": "index.ts",
1003
+ "line": 84,
1004
+ "character": 31
1005
+ },
1006
+ "type": "class T3<T, K>"
1007
+ }
1008
+ },
1009
+ {
1010
+ "__schema": "TypeSchema",
1011
+ "location": {
1012
+ "file": "index.ts",
1013
+ "line": 86,
1014
+ "character": 1
1015
+ },
1016
+ "name": "ParenthesizedType",
1017
+ "signature": "type ParenthesizedType = (T1 | T2)[]",
1018
+ "type": {
1019
+ "__schema": "TypeArraySchema",
1020
+ "location": {
1021
+ "file": "index.ts",
1022
+ "line": 86,
1023
+ "character": 33
1024
+ },
1025
+ "type": {
1026
+ "__schema": "ParenthesizedTypeSchema",
1027
+ "location": {
1028
+ "file": "index.ts",
1029
+ "line": 86,
1030
+ "character": 33
1031
+ },
1032
+ "type": {
1033
+ "__schema": "TypeUnionSchema",
1034
+ "location": {
1035
+ "file": "index.ts",
1036
+ "line": 86,
1037
+ "character": 34
1038
+ },
1039
+ "types": [
1040
+ {
1041
+ "__schema": "InferenceTypeSchema",
1042
+ "location": {
1043
+ "file": "index.ts",
1044
+ "line": 86,
1045
+ "character": 34
1046
+ },
1047
+ "type": "class T1"
1048
+ },
1049
+ {
1050
+ "__schema": "InferenceTypeSchema",
1051
+ "location": {
1052
+ "file": "index.ts",
1053
+ "line": 86,
1054
+ "character": 39
1055
+ },
1056
+ "type": "class T2"
1057
+ }
1058
+ ]
1059
+ }
1060
+ }
1061
+ }
1062
+ },
1063
+ {
1064
+ "__schema": "FunctionLikeSchema",
1065
+ "location": {
1066
+ "file": "index.ts",
1067
+ "line": 88,
1068
+ "character": 1
1069
+ },
1070
+ "name": "typePredicateFn",
1071
+ "signature": "function typePredicateFn(str: any): str is string",
1072
+ "modifiers": [
1073
+ "export"
1074
+ ],
1075
+ "params": [
1076
+ {
1077
+ "__schema": "ParameterSchema",
1078
+ "location": {
1079
+ "file": "index.ts",
1080
+ "line": 88,
1081
+ "character": 33
1082
+ },
1083
+ "name": "str",
1084
+ "type": {
1085
+ "__schema": "KeywordTypeSchema",
1086
+ "location": {
1087
+ "file": "index.ts",
1088
+ "line": 88,
1089
+ "character": 38
1090
+ },
1091
+ "name": "any"
1092
+ }
1093
+ }
1094
+ ],
1095
+ "returnType": {
1096
+ "__schema": "TypePredicateSchema",
1097
+ "location": {
1098
+ "file": "index.ts",
1099
+ "line": 88,
1100
+ "character": 44
1101
+ },
1102
+ "parameterName": "str",
1103
+ "hasAssertsModifier": false,
1104
+ "type": {
1105
+ "__schema": "KeywordTypeSchema",
1106
+ "location": {
1107
+ "file": "index.ts",
1108
+ "line": 88,
1109
+ "character": 51
1110
+ },
1111
+ "name": "string"
1112
+ }
1113
+ }
1114
+ },
1115
+ {
1116
+ "__schema": "FunctionLikeSchema",
1117
+ "location": {
1118
+ "file": "index.ts",
1119
+ "line": 92,
1120
+ "character": 1
1121
+ },
1122
+ "name": "typePredicateNoTypeFn",
1123
+ "signature": "function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition",
1124
+ "modifiers": [
1125
+ "export"
1126
+ ],
1127
+ "params": [
1128
+ {
1129
+ "__schema": "ParameterSchema",
1130
+ "location": {
1131
+ "file": "index.ts",
1132
+ "line": 92,
1133
+ "character": 39
1134
+ },
1135
+ "name": "condition",
1136
+ "type": {
1137
+ "__schema": "KeywordTypeSchema",
1138
+ "location": {
1139
+ "file": "index.ts",
1140
+ "line": 92,
1141
+ "character": 50
1142
+ },
1143
+ "name": "any"
1144
+ }
1145
+ },
1146
+ {
1147
+ "__schema": "ParameterSchema",
1148
+ "location": {
1149
+ "file": "index.ts",
1150
+ "line": 92,
1151
+ "character": 55
1152
+ },
1153
+ "name": "msg",
1154
+ "type": {
1155
+ "__schema": "KeywordTypeSchema",
1156
+ "location": {
1157
+ "file": "index.ts",
1158
+ "line": 92,
1159
+ "character": 61
1160
+ },
1161
+ "name": "string"
1162
+ }
1163
+ }
1164
+ ],
1165
+ "returnType": {
1166
+ "__schema": "TypePredicateSchema",
1167
+ "location": {
1168
+ "file": "index.ts",
1169
+ "line": 92,
1170
+ "character": 70
1171
+ },
1172
+ "parameterName": "condition",
1173
+ "hasAssertsModifier": true
1174
+ }
1175
+ },
1176
+ {
1177
+ "__schema": "FunctionLikeSchema",
1178
+ "location": {
1179
+ "file": "index.ts",
1180
+ "line": 94,
1181
+ "character": 1
1182
+ },
1183
+ "name": "objectBindingElements",
1184
+ "signature": "function objectBindingElements({ prop }: {\n prop?: number;\n}): Promise<number>",
1185
+ "modifiers": [
1186
+ "export",
1187
+ "async"
1188
+ ],
1189
+ "params": [
1190
+ {
1191
+ "__schema": "ParameterSchema",
1192
+ "location": {
1193
+ "file": "index.ts",
1194
+ "line": 94,
1195
+ "character": 45
1196
+ },
1197
+ "name": "{ prop = 1 }",
1198
+ "type": {
1199
+ "__schema": "TypeLiteralSchema",
1200
+ "location": {
1201
+ "file": "index.ts",
1202
+ "line": 94,
1203
+ "character": 45
1204
+ },
1205
+ "members": [
1206
+ {
1207
+ "__schema": "InferenceTypeSchema",
1208
+ "location": {
1209
+ "file": "index.ts",
1210
+ "line": 94,
1211
+ "character": 45
1212
+ },
1213
+ "type": "number",
1214
+ "name": "prop"
1215
+ }
1216
+ ]
1217
+ }
1218
+ }
1219
+ ],
1220
+ "returnType": {
1221
+ "__schema": "InferenceTypeSchema",
1222
+ "location": {
1223
+ "file": "index.ts",
1224
+ "line": 94,
1225
+ "character": 1
1226
+ },
1227
+ "type": "Promise<number>"
1228
+ }
1229
+ },
1230
+ {
1231
+ "__schema": "FunctionLikeSchema",
1232
+ "location": {
1233
+ "file": "index.ts",
1234
+ "line": 97,
1235
+ "character": 1
1236
+ },
1237
+ "name": "arrayBindingElements",
1238
+ "signature": "function arrayBindingElements([prop]: [string]): Promise<string>",
1239
+ "modifiers": [
1240
+ "export",
1241
+ "async"
1242
+ ],
1243
+ "params": [
1244
+ {
1245
+ "__schema": "ParameterSchema",
1246
+ "location": {
1247
+ "file": "index.ts",
1248
+ "line": 97,
1249
+ "character": 44
1250
+ },
1251
+ "name": "[ prop ]",
1252
+ "type": {
1253
+ "__schema": "TupleTypeSchema",
1254
+ "location": {
1255
+ "file": "index.ts",
1256
+ "line": 97,
1257
+ "character": 52
1258
+ },
1259
+ "elements": [
1260
+ {
1261
+ "__schema": "KeywordTypeSchema",
1262
+ "location": {
1263
+ "file": "index.ts",
1264
+ "line": 97,
1265
+ "character": 53
1266
+ },
1267
+ "name": "string"
1268
+ }
1269
+ ]
1270
+ }
1271
+ }
1272
+ ],
1273
+ "returnType": {
1274
+ "__schema": "InferenceTypeSchema",
1275
+ "location": {
1276
+ "file": "index.ts",
1277
+ "line": 97,
1278
+ "character": 1
1279
+ },
1280
+ "type": "Promise<string>"
1281
+ }
1282
+ },
1283
+ {
1284
+ "__schema": "TypeSchema",
1285
+ "location": {
1286
+ "file": "index.ts",
1287
+ "line": 104,
1288
+ "character": 1
1289
+ },
1290
+ "name": "IndexedAccessType",
1291
+ "signature": "type IndexedAccessType = {\n a: string;\n b: boolean;\n}",
1292
+ "type": {
1293
+ "__schema": "IndexedAccessSchema",
1294
+ "location": {
1295
+ "file": "index.ts",
1296
+ "line": 104,
1297
+ "character": 33
1298
+ },
1299
+ "objectType": {
1300
+ "__schema": "InferenceTypeSchema",
1301
+ "location": {
1302
+ "file": "index.ts",
1303
+ "line": 104,
1304
+ "character": 33
1305
+ },
1306
+ "type": "interface config"
1307
+ },
1308
+ "indexType": {
1309
+ "__schema": "LiteralTypeSchema",
1310
+ "location": {
1311
+ "file": "index.ts",
1312
+ "line": 104,
1313
+ "character": 40
1314
+ },
1315
+ "name": "'someField'"
1316
+ }
1317
+ }
1318
+ },
1319
+ {
1320
+ "__schema": "InterfaceSchema",
1321
+ "location": {
1322
+ "file": "index.ts",
1323
+ "line": 107,
1324
+ "character": 1
1325
+ },
1326
+ "name": "ComputedNameWithType",
1327
+ "members": [
1328
+ {
1329
+ "__schema": "VariableSchema",
1330
+ "location": {
1331
+ "file": "index.ts",
1332
+ "line": 108,
1333
+ "character": 3
1334
+ },
1335
+ "name": "[computedName]",
1336
+ "signature": "",
1337
+ "type": {
1338
+ "__schema": "KeywordTypeSchema",
1339
+ "location": {
1340
+ "file": "index.ts",
1341
+ "line": 108,
1342
+ "character": 19
1343
+ },
1344
+ "name": "boolean"
1345
+ }
1346
+ }
1347
+ ]
1348
+ },
1349
+ {
1350
+ "__schema": "InterfaceSchema",
1351
+ "location": {
1352
+ "file": "index.ts",
1353
+ "line": 110,
1354
+ "character": 1
1355
+ },
1356
+ "name": "ComputedNameNoType",
1357
+ "members": [
1358
+ {
1359
+ "__schema": "VariableSchema",
1360
+ "location": {
1361
+ "file": "index.ts",
1362
+ "line": 111,
1363
+ "character": 3
1364
+ },
1365
+ "name": "[computedName]",
1366
+ "signature": "",
1367
+ "type": {
1368
+ "__schema": "InferenceTypeSchema",
1369
+ "location": {
1370
+ "file": "index.ts",
1371
+ "line": 111,
1372
+ "character": 3
1373
+ },
1374
+ "type": "any"
1375
+ }
1376
+ }
1377
+ ]
1378
+ },
1379
+ {
1380
+ "__schema": "TypeSchema",
1381
+ "location": {
1382
+ "file": "index.ts",
1383
+ "line": 116,
1384
+ "character": 1
1385
+ },
1386
+ "name": "templateLiteralType",
1387
+ "signature": "type templateLiteralType = \"hello world1-a hi world2\" | \"hello world1-b hi world2\"",
1388
+ "type": {
1389
+ "__schema": "TemplateLiteralTypeSchema",
1390
+ "location": {
1391
+ "file": "index.ts",
1392
+ "line": 116,
1393
+ "character": 35
1394
+ },
1395
+ "head": "hello ",
1396
+ "templateSpans": [
1397
+ {
1398
+ "__schema": "TemplateLiteralTypeSpanSchema",
1399
+ "location": {
1400
+ "file": "index.ts",
1401
+ "line": 116,
1402
+ "character": 44
1403
+ },
1404
+ "literal": " hi ",
1405
+ "type": {
1406
+ "__schema": "InferenceTypeSchema",
1407
+ "location": {
1408
+ "file": "index.ts",
1409
+ "line": 116,
1410
+ "character": 44
1411
+ },
1412
+ "type": "\"world1-a\" | \"world1-b\""
1413
+ }
1414
+ },
1415
+ {
1416
+ "__schema": "TemplateLiteralTypeSpanSchema",
1417
+ "location": {
1418
+ "file": "index.ts",
1419
+ "line": 116,
1420
+ "character": 57
1421
+ },
1422
+ "literal": "",
1423
+ "type": {
1424
+ "__schema": "InferenceTypeSchema",
1425
+ "location": {
1426
+ "file": "index.ts",
1427
+ "line": 116,
1428
+ "character": 57
1429
+ },
1430
+ "type": "\"world2\""
1431
+ }
1432
+ }
1433
+ ]
1434
+ }
1435
+ }
1436
+ ]
1437
+ }
1438
+ }