@teambit/schema 0.0.1159 → 0.0.1161

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.
@@ -20,62 +20,6 @@
20
20
  "line": 15,
21
21
  "character": 1
22
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
- "filePath": "index.ts",
33
- "line": 15,
34
- "character": 24
35
- },
36
- "name": "a",
37
- "isOptional": false,
38
- "defaultValue": "4",
39
- "type": {
40
- "__schema": "InferenceTypeSchema",
41
- "location": {
42
- "filePath": "index.ts",
43
- "line": 15,
44
- "character": 24
45
- },
46
- "type": "number"
47
- }
48
- },
49
- {
50
- "__schema": "ParameterSchema",
51
- "location": {
52
- "filePath": "index.ts",
53
- "line": 15,
54
- "character": 31
55
- },
56
- "name": "b",
57
- "isOptional": false,
58
- "defaultValue": "5",
59
- "type": {
60
- "__schema": "InferenceTypeSchema",
61
- "location": {
62
- "filePath": "index.ts",
63
- "line": 15,
64
- "character": 31
65
- },
66
- "type": "number"
67
- }
68
- }
69
- ],
70
- "returnType": {
71
- "__schema": "KeywordTypeSchema",
72
- "location": {
73
- "filePath": "index.ts",
74
- "line": 15,
75
- "character": 39
76
- },
77
- "name": "number"
78
- },
79
23
  "doc": {
80
24
  "__schema": "DocSchema",
81
25
  "location": {
@@ -103,9 +47,9 @@
103
47
  "line": 11,
104
48
  "character": 4
105
49
  },
50
+ "name": "a",
106
51
  "tagName": "parameter",
107
52
  "comment": "this is A",
108
- "name": "a",
109
53
  "type": {
110
54
  "__schema": "KeywordTypeSchema",
111
55
  "location": {
@@ -123,9 +67,9 @@
123
67
  "line": 12,
124
68
  "character": 4
125
69
  },
70
+ "name": "b",
126
71
  "tagName": "parameter",
127
- "comment": "this is B",
128
- "name": "b"
72
+ "comment": "this is B"
129
73
  },
130
74
  {
131
75
  "__schema": "ReturnTagSchema",
@@ -147,22 +91,80 @@
147
91
  }
148
92
  }
149
93
  ]
150
- }
94
+ },
95
+ "signature": "function myFunc(a?: number, b?: number): number",
96
+ "name": "myFunc",
97
+ "params": [
98
+ {
99
+ "__schema": "ParameterSchema",
100
+ "location": {
101
+ "filePath": "index.ts",
102
+ "line": 15,
103
+ "character": 24
104
+ },
105
+ "name": "a",
106
+ "type": {
107
+ "__schema": "InferenceTypeSchema",
108
+ "location": {
109
+ "filePath": "index.ts",
110
+ "line": 15,
111
+ "character": 24
112
+ },
113
+ "type": "number"
114
+ },
115
+ "isOptional": false,
116
+ "defaultValue": "4",
117
+ "isSpread": false
118
+ },
119
+ {
120
+ "__schema": "ParameterSchema",
121
+ "location": {
122
+ "filePath": "index.ts",
123
+ "line": 15,
124
+ "character": 31
125
+ },
126
+ "name": "b",
127
+ "type": {
128
+ "__schema": "InferenceTypeSchema",
129
+ "location": {
130
+ "filePath": "index.ts",
131
+ "line": 15,
132
+ "character": 31
133
+ },
134
+ "type": "number"
135
+ },
136
+ "isOptional": false,
137
+ "defaultValue": "5",
138
+ "isSpread": false
139
+ }
140
+ ],
141
+ "returnType": {
142
+ "__schema": "KeywordTypeSchema",
143
+ "location": {
144
+ "filePath": "index.ts",
145
+ "line": 15,
146
+ "character": 39
147
+ },
148
+ "name": "number"
149
+ },
150
+ "modifiers": [
151
+ "export"
152
+ ]
151
153
  },
152
154
  {
153
155
  "__schema": "TypeSchema",
154
156
  "location": {
155
157
  "filePath": "button.tsx",
156
- "line": 7,
158
+ "line": 6,
157
159
  "character": 1
158
160
  },
159
- "name": "ButtonElementType",
160
161
  "signature": "type ButtonElementType = \"a\" | \"button\"",
162
+ "name": "ButtonElementType",
161
163
  "type": {
162
164
  "__schema": "TypeUnionSchema",
163
165
  "location": {
164
166
  "filePath": "button.tsx",
165
- "line": 7,
167
+ "line": 6,
166
168
  "character": 33
167
169
  },
168
170
  "types": [
@@ -170,7 +172,7 @@
170
172
  "__schema": "LiteralTypeSchema",
171
173
  "location": {
172
174
  "filePath": "button.tsx",
173
- "line": 7,
175
+ "line": 6,
174
176
  "character": 33
175
177
  },
176
178
  "name": "'a'"
@@ -179,7 +181,7 @@
179
181
  "__schema": "LiteralTypeSchema",
180
182
  "location": {
181
183
  "filePath": "button.tsx",
182
- "line": 7,
184
+ "line": 6,
183
185
  "character": 39
184
186
  },
185
187
  "name": "'button'"
@@ -191,16 +193,16 @@
191
193
  "__schema": "TypeSchema",
192
194
  "location": {
193
195
  "filePath": "button.tsx",
194
- "line": 9,
196
+ "line": 8,
195
197
  "character": 1
196
198
  },
197
- "name": "ButtonProps",
198
199
  "signature": "type ButtonProps = any",
200
+ "name": "ButtonProps",
199
201
  "type": {
200
202
  "__schema": "TypeIntersectionSchema",
201
203
  "location": {
202
204
  "filePath": "button.tsx",
203
- "line": 9,
205
+ "line": 8,
204
206
  "character": 27
205
207
  },
206
208
  "types": [
@@ -208,7 +210,7 @@
208
210
  "__schema": "TypeLiteralSchema",
209
211
  "location": {
210
212
  "filePath": "button.tsx",
211
- "line": 9,
213
+ "line": 8,
212
214
  "character": 27
213
215
  },
214
216
  "members": [
@@ -216,92 +218,92 @@
216
218
  "__schema": "VariableLikeSchema",
217
219
  "location": {
218
220
  "filePath": "button.tsx",
219
- "line": 13,
221
+ "line": 12,
220
222
  "character": 3
221
223
  },
222
- "name": "children",
224
+ "doc": {
225
+ "__schema": "DocSchema",
226
+ "location": {
227
+ "filePath": "button.tsx",
228
+ "line": 9,
229
+ "character": 3
230
+ },
231
+ "raw": "/**\n * children of the Button.\n */",
232
+ "comment": "children of the Button."
233
+ },
223
234
  "signature": "(property) children: ReactNode",
224
- "isOptional": false,
235
+ "name": "children",
225
236
  "type": {
226
237
  "__schema": "TypeRefSchema",
227
238
  "location": {
228
239
  "filePath": "button.tsx",
229
- "line": 13,
240
+ "line": 12,
230
241
  "character": 3
231
242
  },
232
243
  "name": "ReactNode",
233
244
  "packageName": "react"
234
245
  },
235
- "doc": {
236
- "__schema": "DocSchema",
237
- "location": {
238
- "filePath": "button.tsx",
239
- "line": 10,
240
- "character": 3
241
- },
242
- "raw": "/**\n * children of the Button.\n */",
243
- "comment": "children of the Button."
244
- }
246
+ "isOptional": false
245
247
  },
246
248
  {
247
249
  "__schema": "VariableLikeSchema",
248
250
  "location": {
249
251
  "filePath": "button.tsx",
250
- "line": 18,
252
+ "line": 17,
251
253
  "character": 3
252
254
  },
255
+ "doc": {
256
+ "__schema": "DocSchema",
257
+ "location": {
258
+ "filePath": "button.tsx",
259
+ "line": 14,
260
+ "character": 3
261
+ },
262
+ "raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
263
+ "comment": "link to target page. once href is used, Button is considered an A tag."
264
+ },
265
+ "signature": "(property) href?: string | undefined",
253
266
  "name": "href",
254
- "signature": "(property) href?: string",
255
- "isOptional": true,
256
267
  "type": {
257
268
  "__schema": "KeywordTypeSchema",
258
269
  "location": {
259
270
  "filePath": "button.tsx",
260
- "line": 18,
271
+ "line": 17,
261
272
  "character": 10
262
273
  },
263
274
  "name": "string"
264
275
  },
265
- "doc": {
266
- "__schema": "DocSchema",
267
- "location": {
268
- "filePath": "button.tsx",
269
- "line": 15,
270
- "character": 3
271
- },
272
- "raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
273
- "comment": "link to target page. once href is used, Button is considered an A tag."
274
- }
276
+ "isOptional": true
275
277
  },
276
278
  {
277
279
  "__schema": "VariableLikeSchema",
278
280
  "location": {
279
281
  "filePath": "button.tsx",
280
- "line": 23,
282
+ "line": 22,
281
283
  "character": 3
282
284
  },
285
+ "doc": {
286
+ "__schema": "DocSchema",
287
+ "location": {
288
+ "filePath": "button.tsx",
289
+ "line": 19,
290
+ "character": 3
291
+ },
292
+ "raw": "/**\n * class names to inject.\n */",
293
+ "comment": "class names to inject."
294
+ },
295
+ "signature": "(property) className?: string | undefined",
283
296
  "name": "className",
284
- "signature": "(property) className?: string",
285
- "isOptional": true,
286
297
  "type": {
287
298
  "__schema": "KeywordTypeSchema",
288
299
  "location": {
289
300
  "filePath": "button.tsx",
290
- "line": 23,
301
+ "line": 22,
291
302
  "character": 15
292
303
  },
293
304
  "name": "string"
294
305
  },
295
- "doc": {
296
- "__schema": "DocSchema",
297
- "location": {
298
- "filePath": "button.tsx",
299
- "line": 20,
300
- "character": 3
301
- },
302
- "raw": "/**\n * class names to inject.\n */",
303
- "comment": "class names to inject."
304
- }
306
+ "isOptional": true
305
307
  }
306
308
  ]
307
309
  },
@@ -309,7 +311,7 @@
309
311
  "__schema": "InferenceTypeSchema",
310
312
  "location": {
311
313
  "filePath": "button.tsx",
312
- "line": 24,
314
+ "line": 23,
313
315
  "character": 5
314
316
  },
315
317
  "name": "React.ButtonHTMLAttributes"
@@ -321,80 +323,81 @@
321
323
  "__schema": "FunctionLikeSchema",
322
324
  "location": {
323
325
  "filePath": "button.tsx",
324
- "line": 26,
326
+ "line": 25,
325
327
  "character": 1
326
328
  },
327
- "name": "Button",
328
329
  "signature": "function Button(props: ButtonProps): any",
329
- "modifiers": [
330
- "export"
331
- ],
330
+ "name": "Button",
332
331
  "params": [
333
332
  {
334
333
  "__schema": "ParameterSchema",
335
334
  "location": {
336
335
  "filePath": "button.tsx",
337
- "line": 26,
336
+ "line": 25,
338
337
  "character": 24
339
338
  },
340
339
  "name": "props",
341
- "isOptional": false,
342
340
  "type": {
343
341
  "__schema": "TypeRefSchema",
344
342
  "location": {
345
343
  "filePath": "button.tsx",
346
- "line": 26,
344
+ "line": 25,
347
345
  "character": 31
348
346
  },
349
347
  "name": "ButtonProps",
350
348
  "internalFilePath": "button.tsx"
351
- }
349
+ },
350
+ "isOptional": false,
351
+ "isSpread": false
352
352
  }
353
353
  ],
354
354
  "returnType": {
355
355
  "__schema": "InferenceTypeSchema",
356
356
  "location": {
357
357
  "filePath": "button.tsx",
358
- "line": 26,
358
+ "line": 25,
359
359
  "character": 1
360
360
  },
361
361
  "type": "any"
362
- }
362
+ },
363
+ "modifiers": [
364
+ "export"
365
+ ]
363
366
  },
364
367
  {
365
368
  "__schema": "ClassSchema",
366
- "name": "Bar",
367
369
  "location": {
368
370
  "filePath": "button.tsx",
369
- "line": 61,
371
+ "line": 60,
370
372
  "character": 1
371
373
  },
372
374
  "signature": "class Bar",
373
- "extendsNodes": [],
374
- "implementNodes": [],
375
+ "name": "Bar",
375
376
  "members": [
376
377
  {
377
378
  "__schema": "FunctionLikeSchema",
378
379
  "location": {
379
380
  "filePath": "button.tsx",
380
- "line": 62,
381
+ "line": 61,
381
382
  "character": 3
382
383
  },
383
- "name": "foo",
384
384
  "signature": "(method) Bar.foo(): void",
385
- "modifiers": [],
385
+ "name": "foo",
386
386
  "params": [],
387
387
  "returnType": {
388
388
  "__schema": "InferenceTypeSchema",
389
389
  "location": {
390
390
  "filePath": "button.tsx",
391
- "line": 62,
391
+ "line": 61,
392
392
  "character": 3
393
393
  },
394
394
  "type": "void"
395
- }
395
+ },
396
+ "modifiers": []
396
397
  }
397
- ]
398
+ ],
399
+ "extendsNodes": [],
400
+ "implementNodes": []
398
401
  },
399
402
  {
400
403
  "__schema": "FunctionLikeSchema",
@@ -403,11 +406,8 @@
403
406
  "line": 21,
404
407
  "character": 1
405
408
  },
406
- "name": "Hi",
407
409
  "signature": "function Hi(): void",
408
- "modifiers": [
409
- "export"
410
- ],
410
+ "name": "Hi",
411
411
  "params": [],
412
412
  "returnType": {
413
413
  "__schema": "InferenceTypeSchema",
@@ -417,7 +417,10 @@
417
417
  "character": 1
418
418
  },
419
419
  "type": "void"
420
- }
420
+ },
421
+ "modifiers": [
422
+ "export"
423
+ ]
421
424
  },
422
425
  {
423
426
  "__schema": "VariableLikeSchema",
@@ -426,9 +429,8 @@
426
429
  "line": 23,
427
430
  "character": 14
428
431
  },
429
- "name": "a",
430
432
  "signature": "const a: 4",
431
- "isOptional": false,
433
+ "name": "a",
432
434
  "type": {
433
435
  "__schema": "InferenceTypeSchema",
434
436
  "location": {
@@ -437,7 +439,9 @@
437
439
  "character": 14
438
440
  },
439
441
  "type": "4"
440
- }
442
+ },
443
+ "isOptional": false,
444
+ "defaultValue": "4"
441
445
  },
442
446
  {
443
447
  "__schema": "VariableLikeSchema",
@@ -446,9 +450,8 @@
446
450
  "line": 24,
447
451
  "character": 3
448
452
  },
449
- "name": "b",
450
453
  "signature": "const b: 5",
451
- "isOptional": false,
454
+ "name": "b",
452
455
  "type": {
453
456
  "__schema": "LiteralTypeSchema",
454
457
  "location": {
@@ -457,7 +460,9 @@
457
460
  "character": 6
458
461
  },
459
462
  "name": "5"
460
- }
463
+ },
464
+ "isOptional": false,
465
+ "defaultValue": "5"
461
466
  },
462
467
  {
463
468
  "__schema": "ModuleSchema",
@@ -474,9 +479,8 @@
474
479
  "line": 6,
475
480
  "character": 14
476
481
  },
477
- "name": "BasicButton",
478
482
  "signature": "const BasicButton: () => any",
479
- "modifiers": [],
483
+ "name": "BasicButton",
480
484
  "params": [],
481
485
  "returnType": {
482
486
  "__schema": "InferenceTypeSchema",
@@ -486,7 +490,8 @@
486
490
  "character": 14
487
491
  },
488
492
  "type": "any"
489
- }
493
+ },
494
+ "modifiers": []
490
495
  },
491
496
  {
492
497
  "__schema": "FunctionLikeSchema",
@@ -495,11 +500,18 @@
495
500
  "line": 14,
496
501
  "character": 1
497
502
  },
498
- "name": "Footer",
503
+ "doc": {
504
+ "__schema": "DocSchema",
505
+ "location": {
506
+ "filePath": "button.composition.tsx",
507
+ "line": 10,
508
+ "character": 1
509
+ },
510
+ "raw": "/**\n * example of passing a JSX Element as a parameter\n */",
511
+ "comment": "example of passing a JSX Element as a parameter"
512
+ },
499
513
  "signature": "function Footer({ children }: {\n children?: any;\n}): any",
500
- "modifiers": [
501
- "export"
502
- ],
514
+ "name": "Footer",
503
515
  "params": [
504
516
  {
505
517
  "__schema": "ParameterSchema",
@@ -509,7 +521,6 @@
509
521
  "character": 24
510
522
  },
511
523
  "name": "{ children = <BasicButton /> }",
512
- "isOptional": false,
513
524
  "type": {
514
525
  "__schema": "TypeLiteralSchema",
515
526
  "location": {
@@ -525,11 +536,12 @@
525
536
  "line": 14,
526
537
  "character": 24
527
538
  },
528
- "type": "any",
529
- "name": "children"
539
+ "name": "children",
540
+ "type": "any"
530
541
  }
531
542
  ]
532
543
  },
544
+ "isOptional": false,
533
545
  "objectBindingNodes": [
534
546
  {
535
547
  "__schema": "InferenceTypeSchema",
@@ -538,10 +550,11 @@
538
550
  "line": 14,
539
551
  "character": 24
540
552
  },
541
- "type": "any",
542
- "name": "children"
553
+ "name": "children",
554
+ "type": "any"
543
555
  }
544
- ]
556
+ ],
557
+ "isSpread": false
545
558
  }
546
559
  ],
547
560
  "returnType": {
@@ -553,16 +566,9 @@
553
566
  },
554
567
  "type": "any"
555
568
  },
556
- "doc": {
557
- "__schema": "DocSchema",
558
- "location": {
559
- "filePath": "button.composition.tsx",
560
- "line": 10,
561
- "character": 1
562
- },
563
- "raw": "/**\n * example of passing a JSX Element as a parameter\n */",
564
- "comment": "example of passing a JSX Element as a parameter"
565
- }
569
+ "modifiers": [
570
+ "export"
571
+ ]
566
572
  },
567
573
  {
568
574
  "__schema": "FunctionLikeSchema",
@@ -571,9 +577,8 @@
571
577
  "line": 18,
572
578
  "character": 14
573
579
  },
574
- "name": "ButtonWithCustomStyles",
575
580
  "signature": "const ButtonWithCustomStyles: () => any",
576
- "modifiers": [],
581
+ "name": "ButtonWithCustomStyles",
577
582
  "params": [],
578
583
  "returnType": {
579
584
  "__schema": "InferenceTypeSchema",
@@ -583,7 +588,8 @@
583
588
  "character": 14
584
589
  },
585
590
  "type": "any"
586
- }
591
+ },
592
+ "modifiers": []
587
593
  },
588
594
  {
589
595
  "__schema": "FunctionLikeSchema",
@@ -592,9 +598,8 @@
592
598
  "line": 22,
593
599
  "character": 14
594
600
  },
595
- "name": "ButtonWithIcon",
596
601
  "signature": "const ButtonWithIcon: () => any",
597
- "modifiers": [],
602
+ "name": "ButtonWithIcon",
598
603
  "params": [],
599
604
  "returnType": {
600
605
  "__schema": "InferenceTypeSchema",
@@ -604,7 +609,8 @@
604
609
  "character": 14
605
610
  },
606
611
  "type": "any"
607
- }
612
+ },
613
+ "modifiers": []
608
614
  },
609
615
  {
610
616
  "__schema": "FunctionLikeSchema",
@@ -613,9 +619,8 @@
613
619
  "line": 31,
614
620
  "character": 14
615
621
  },
616
- "name": "ButtonAsALink",
617
622
  "signature": "const ButtonAsALink: () => any",
618
- "modifiers": [],
623
+ "name": "ButtonAsALink",
619
624
  "params": [],
620
625
  "returnType": {
621
626
  "__schema": "InferenceTypeSchema",
@@ -625,7 +630,8 @@
625
630
  "character": 14
626
631
  },
627
632
  "type": "any"
628
- }
633
+ },
634
+ "modifiers": []
629
635
  }
630
636
  ],
631
637
  "internals": [],
@@ -638,9 +644,8 @@
638
644
  "line": 28,
639
645
  "character": 14
640
646
  },
641
- "name": "HiThere",
642
647
  "signature": "const HiThere: \"HiThere\"",
643
- "isOptional": false,
648
+ "name": "HiThere",
644
649
  "type": {
645
650
  "__schema": "InferenceTypeSchema",
646
651
  "location": {
@@ -649,7 +654,9 @@
649
654
  "character": 14
650
655
  },
651
656
  "type": "\"HiThere\""
652
- }
657
+ },
658
+ "isOptional": false,
659
+ "defaultValue": "'HiThere'"
653
660
  },
654
661
  {
655
662
  "__schema": "FunctionLikeSchema",
@@ -658,9 +665,8 @@
658
665
  "line": 30,
659
666
  "character": 14
660
667
  },
661
- "name": "Function",
662
668
  "signature": "const Function: () => void",
663
- "modifiers": [],
669
+ "name": "Function",
664
670
  "params": [],
665
671
  "returnType": {
666
672
  "__schema": "InferenceTypeSchema",
@@ -670,7 +676,8 @@
670
676
  "character": 14
671
677
  },
672
678
  "type": "void"
673
- }
679
+ },
680
+ "modifiers": []
674
681
  },
675
682
  {
676
683
  "__schema": "VariableLikeSchema",
@@ -679,31 +686,29 @@
679
686
  "line": 32,
680
687
  "character": 14
681
688
  },
682
- "name": "Array",
683
689
  "signature": "const Array: string[]",
684
- "isOptional": false,
690
+ "name": "Array",
685
691
  "type": {
686
- "__schema": "TypeRefSchema",
692
+ "__schema": "InferenceTypeSchema",
687
693
  "location": {
688
694
  "filePath": "index.ts",
689
695
  "line": 32,
690
696
  "character": 14
691
697
  },
692
- "name": "string[]",
693
- "packageName": ""
694
- }
698
+ "type": "string[]"
699
+ },
700
+ "isOptional": false,
701
+ "defaultValue": "['hi', 'there']"
695
702
  },
696
703
  {
697
704
  "__schema": "ClassSchema",
698
- "name": "ClassSomething",
699
705
  "location": {
700
706
  "filePath": "index.ts",
701
707
  "line": 36,
702
708
  "character": 1
703
709
  },
704
710
  "signature": "class ClassSomething",
705
- "extendsNodes": [],
706
- "implementNodes": [],
711
+ "name": "ClassSomething",
707
712
  "members": [
708
713
  {
709
714
  "__schema": "VariableLikeSchema",
@@ -712,9 +717,8 @@
712
717
  "line": 37,
713
718
  "character": 3
714
719
  },
715
- "name": "app",
716
720
  "signature": "(property) ClassSomething.app: string",
717
- "isOptional": false,
721
+ "name": "app",
718
722
  "type": {
719
723
  "__schema": "InferenceTypeSchema",
720
724
  "location": {
@@ -723,7 +727,9 @@
723
727
  "character": 3
724
728
  },
725
729
  "type": "string"
726
- }
730
+ },
731
+ "isOptional": false,
732
+ "defaultValue": "''"
727
733
  },
728
734
  {
729
735
  "__schema": "ConstructorSchema",
@@ -732,9 +738,8 @@
732
738
  "line": 38,
733
739
  "character": 3
734
740
  },
735
- "name": "constructor",
736
741
  "signature": "constructor ClassSomething(da: 'dsa'): ClassSomething",
737
- "modifiers": [],
742
+ "name": "constructor",
738
743
  "params": [
739
744
  {
740
745
  "__schema": "ParameterSchema",
@@ -744,7 +749,6 @@
744
749
  "character": 15
745
750
  },
746
751
  "name": "da",
747
- "isOptional": false,
748
752
  "type": {
749
753
  "__schema": "LiteralTypeSchema",
750
754
  "location": {
@@ -753,7 +757,9 @@
753
757
  "character": 28
754
758
  },
755
759
  "name": "'dsa'"
756
- }
760
+ },
761
+ "isOptional": false,
762
+ "isSpread": false
757
763
  }
758
764
  ],
759
765
  "returnType": {
@@ -763,7 +769,8 @@
763
769
  "line": 36,
764
770
  "character": 1
765
771
  }
766
- }
772
+ },
773
+ "modifiers": []
767
774
  },
768
775
  {
769
776
  "__schema": "FunctionLikeSchema",
@@ -772,9 +779,8 @@
772
779
  "line": 40,
773
780
  "character": 3
774
781
  },
775
- "name": "a",
776
782
  "signature": "(method) ClassSomething.a(): Foo",
777
- "modifiers": [],
783
+ "name": "a",
778
784
  "params": [],
779
785
  "returnType": {
780
786
  "__schema": "TypeRefSchema",
@@ -785,7 +791,8 @@
785
791
  },
786
792
  "name": "Foo",
787
793
  "internalFilePath": "index.ts"
788
- }
794
+ },
795
+ "modifiers": []
789
796
  },
790
797
  {
791
798
  "__schema": "GetAccessorSchema",
@@ -794,8 +801,8 @@
794
801
  "line": 43,
795
802
  "character": 3
796
803
  },
797
- "name": "getter",
798
804
  "signature": "(getter) ClassSomething.getter: string",
805
+ "name": "getter",
799
806
  "type": {
800
807
  "__schema": "InferenceTypeSchema",
801
808
  "location": {
@@ -813,8 +820,8 @@
813
820
  "line": 47,
814
821
  "character": 3
815
822
  },
816
- "name": "setter",
817
823
  "signature": "(setter) ClassSomething.setter: boolean",
824
+ "name": "setter",
818
825
  "param": {
819
826
  "__schema": "ParameterSchema",
820
827
  "location": {
@@ -823,7 +830,6 @@
823
830
  "character": 14
824
831
  },
825
832
  "name": "a",
826
- "isOptional": false,
827
833
  "type": {
828
834
  "__schema": "KeywordTypeSchema",
829
835
  "location": {
@@ -832,10 +838,14 @@
832
838
  "character": 17
833
839
  },
834
840
  "name": "boolean"
835
- }
841
+ },
842
+ "isOptional": false,
843
+ "isSpread": false
836
844
  }
837
845
  }
838
- ]
846
+ ],
847
+ "extendsNodes": [],
848
+ "implementNodes": []
839
849
  },
840
850
  {
841
851
  "__schema": "TypeSchema",
@@ -844,8 +854,8 @@
844
854
  "line": 52,
845
855
  "character": 1
846
856
  },
847
- "name": "IndexSig",
848
857
  "signature": "type IndexSig = {\n [key: string]: boolean;\n}",
858
+ "name": "IndexSig",
849
859
  "type": {
850
860
  "__schema": "TypeLiteralSchema",
851
861
  "location": {
@@ -861,9 +871,8 @@
861
871
  "line": 52,
862
872
  "character": 26
863
873
  },
874
+ "signature": "(key: string): boolean",
864
875
  "name": "",
865
- "signature": "",
866
- "modifiers": [],
867
876
  "params": [
868
877
  {
869
878
  "__schema": "ParameterSchema",
@@ -873,7 +882,6 @@
873
882
  "character": 27
874
883
  },
875
884
  "name": "key",
876
- "isOptional": false,
877
885
  "type": {
878
886
  "__schema": "KeywordTypeSchema",
879
887
  "location": {
@@ -882,7 +890,9 @@
882
890
  "character": 32
883
891
  },
884
892
  "name": "string"
885
- }
893
+ },
894
+ "isOptional": false,
895
+ "isSpread": false
886
896
  }
887
897
  ],
888
898
  "returnType": {
@@ -893,7 +903,8 @@
893
903
  "character": 41
894
904
  },
895
905
  "name": "boolean"
896
- }
906
+ },
907
+ "modifiers": []
897
908
  }
898
909
  ]
899
910
  }
@@ -905,9 +916,8 @@
905
916
  "line": 54,
906
917
  "character": 1
907
918
  },
908
- "name": "Hello",
909
919
  "signature": "interface Hello",
910
- "extendsNodes": [],
920
+ "name": "Hello",
911
921
  "members": [
912
922
  {
913
923
  "__schema": "VariableLikeSchema",
@@ -916,9 +926,8 @@
916
926
  "line": 55,
917
927
  "character": 3
918
928
  },
919
- "name": "propertySig",
920
929
  "signature": "(property) Hello.propertySig: () => void",
921
- "isOptional": false,
930
+ "name": "propertySig",
922
931
  "type": {
923
932
  "__schema": "FunctionLikeSchema",
924
933
  "location": {
@@ -926,9 +935,8 @@
926
935
  "line": 55,
927
936
  "character": 16
928
937
  },
938
+ "signature": "(): void",
929
939
  "name": "",
930
- "signature": "",
931
- "modifiers": [],
932
940
  "params": [],
933
941
  "returnType": {
934
942
  "__schema": "KeywordTypeSchema",
@@ -938,8 +946,10 @@
938
946
  "character": 22
939
947
  },
940
948
  "name": "void"
941
- }
942
- }
949
+ },
950
+ "modifiers": []
951
+ },
952
+ "isOptional": false
943
953
  },
944
954
  {
945
955
  "__schema": "FunctionLikeSchema",
@@ -948,9 +958,8 @@
948
958
  "line": 56,
949
959
  "character": 3
950
960
  },
951
- "name": "methodSig",
952
961
  "signature": "(method) Hello.methodSig(): string",
953
- "modifiers": [],
962
+ "name": "methodSig",
954
963
  "params": [],
955
964
  "returnType": {
956
965
  "__schema": "KeywordTypeSchema",
@@ -960,9 +969,11 @@
960
969
  "character": 16
961
970
  },
962
971
  "name": "string"
963
- }
972
+ },
973
+ "modifiers": []
964
974
  }
965
- ]
975
+ ],
976
+ "extendsNodes": []
966
977
  },
967
978
  {
968
979
  "__schema": "VariableLikeSchema",
@@ -971,9 +982,8 @@
971
982
  "line": 61,
972
983
  "character": 14
973
984
  },
974
- "name": "a1",
975
985
  "signature": "const a1: {\n a: number;\n b: number;\n}",
976
- "isOptional": false,
986
+ "name": "a1",
977
987
  "type": {
978
988
  "__schema": "TypeQuerySchema",
979
989
  "location": {
@@ -992,7 +1002,9 @@
992
1002
  "name": "obj",
993
1003
  "internalFilePath": "index.ts"
994
1004
  }
995
- }
1005
+ },
1006
+ "isOptional": false,
1007
+ "defaultValue": "{ a: 5, b: 9 }"
996
1008
  },
997
1009
  {
998
1010
  "__schema": "TypeSchema",
@@ -1001,8 +1013,8 @@
1001
1013
  "line": 63,
1002
1014
  "character": 1
1003
1015
  },
1004
- "name": "TypeOperator",
1005
1016
  "signature": "type TypeOperator = \"a\" | \"b\"",
1017
+ "name": "TypeOperator",
1006
1018
  "type": {
1007
1019
  "__schema": "TypeOperatorSchema",
1008
1020
  "location": {
@@ -1039,9 +1051,8 @@
1039
1051
  "line": 69,
1040
1052
  "character": 14
1041
1053
  },
1042
- "name": "getBar",
1043
1054
  "signature": "const getBar: (bar: Bar) => Bar",
1044
- "modifiers": [],
1055
+ "name": "getBar",
1045
1056
  "params": [
1046
1057
  {
1047
1058
  "__schema": "ParameterSchema",
@@ -1051,7 +1062,6 @@
1051
1062
  "character": 24
1052
1063
  },
1053
1064
  "name": "bar",
1054
- "isOptional": false,
1055
1065
  "type": {
1056
1066
  "__schema": "TypeRefSchema",
1057
1067
  "location": {
@@ -1061,7 +1071,9 @@
1061
1071
  },
1062
1072
  "name": "Bar",
1063
1073
  "internalFilePath": "index.ts"
1064
- }
1074
+ },
1075
+ "isOptional": false,
1076
+ "isSpread": false
1065
1077
  }
1066
1078
  ],
1067
1079
  "returnType": {
@@ -1073,7 +1085,8 @@
1073
1085
  },
1074
1086
  "name": "Bar",
1075
1087
  "internalFilePath": "index.ts"
1076
- }
1088
+ },
1089
+ "modifiers": []
1077
1090
  },
1078
1091
  {
1079
1092
  "__schema": "FunctionLikeSchema",
@@ -1082,9 +1095,8 @@
1082
1095
  "line": 71,
1083
1096
  "character": 14
1084
1097
  },
1085
- "name": "tuple",
1086
1098
  "signature": "const tuple: ([a, b, c]: [string, Function, Record<string, any>]) => void",
1087
- "modifiers": [],
1099
+ "name": "tuple",
1088
1100
  "params": [
1089
1101
  {
1090
1102
  "__schema": "ParameterSchema",
@@ -1094,7 +1106,6 @@
1094
1106
  "character": 23
1095
1107
  },
1096
1108
  "name": "[ a, b, c ]",
1097
- "isOptional": false,
1098
1109
  "type": {
1099
1110
  "__schema": "TupleTypeSchema",
1100
1111
  "location": {
@@ -1122,37 +1133,19 @@
1122
1133
  "name": "Function"
1123
1134
  },
1124
1135
  {
1125
- "__schema": "TypeRefSchema",
1136
+ "__schema": "InferenceTypeSchema",
1126
1137
  "location": {
1127
1138
  "filePath": "index.ts",
1128
1139
  "line": 71,
1129
1140
  "character": 53
1130
1141
  },
1131
1142
  "name": "Record",
1132
- "packageName": "",
1133
- "typeArgs": [
1134
- {
1135
- "__schema": "KeywordTypeSchema",
1136
- "location": {
1137
- "filePath": "index.ts",
1138
- "line": 71,
1139
- "character": 60
1140
- },
1141
- "name": "string"
1142
- },
1143
- {
1144
- "__schema": "KeywordTypeSchema",
1145
- "location": {
1146
- "filePath": "index.ts",
1147
- "line": 71,
1148
- "character": 68
1149
- },
1150
- "name": "any"
1151
- }
1152
- ]
1143
+ "type": "{ [P in K]: T; }"
1153
1144
  }
1154
1145
  ]
1155
- }
1146
+ },
1147
+ "isOptional": false,
1148
+ "isSpread": false
1156
1149
  }
1157
1150
  ],
1158
1151
  "returnType": {
@@ -1163,7 +1156,8 @@
1163
1156
  "character": 14
1164
1157
  },
1165
1158
  "type": "void"
1166
- }
1159
+ },
1160
+ "modifiers": []
1167
1161
  },
1168
1162
  {
1169
1163
  "__schema": "EnumSchema",
@@ -1172,8 +1166,8 @@
1172
1166
  "line": 73,
1173
1167
  "character": 1
1174
1168
  },
1175
- "name": "Food",
1176
1169
  "signature": "enum Food",
1170
+ "name": "Food",
1177
1171
  "members": [
1178
1172
  {
1179
1173
  "__schema": "EnumMemberSchema",
@@ -1182,8 +1176,8 @@
1182
1176
  "line": 74,
1183
1177
  "character": 3
1184
1178
  },
1185
- "name": "Falafel",
1186
- "signature": "(enum member) Food.Falafel = 0"
1179
+ "signature": "(enum member) Food.Falafel = 0",
1180
+ "name": "Falafel"
1187
1181
  },
1188
1182
  {
1189
1183
  "__schema": "EnumMemberSchema",
@@ -1192,8 +1186,8 @@
1192
1186
  "line": 75,
1193
1187
  "character": 3
1194
1188
  },
1195
- "name": "Hummus",
1196
- "signature": "(enum member) Food.Hummus = 1"
1189
+ "signature": "(enum member) Food.Hummus = 1",
1190
+ "name": "Hummus"
1197
1191
  },
1198
1192
  {
1199
1193
  "__schema": "EnumMemberSchema",
@@ -1202,8 +1196,8 @@
1202
1196
  "line": 76,
1203
1197
  "character": 3
1204
1198
  },
1205
- "name": "Tahini",
1206
- "signature": "(enum member) Food.Tahini = 2"
1199
+ "signature": "(enum member) Food.Tahini = 2",
1200
+ "name": "Tahini"
1207
1201
  }
1208
1202
  ]
1209
1203
  },
@@ -1214,34 +1208,23 @@
1214
1208
  "line": 79,
1215
1209
  "character": 1
1216
1210
  },
1217
- "name": "getPromise",
1218
1211
  "signature": "function getPromise(): Promise<string>",
1219
- "modifiers": [
1220
- "export",
1221
- "async"
1222
- ],
1212
+ "name": "getPromise",
1223
1213
  "params": [],
1224
1214
  "returnType": {
1225
- "__schema": "TypeRefSchema",
1215
+ "__schema": "InferenceTypeSchema",
1226
1216
  "location": {
1227
1217
  "filePath": "index.ts",
1228
1218
  "line": 79,
1229
1219
  "character": 37
1230
1220
  },
1231
1221
  "name": "Promise",
1232
- "packageName": "",
1233
- "typeArgs": [
1234
- {
1235
- "__schema": "KeywordTypeSchema",
1236
- "location": {
1237
- "filePath": "index.ts",
1238
- "line": 79,
1239
- "character": 45
1240
- },
1241
- "name": "string"
1242
- }
1243
- ]
1244
- }
1222
+ "type": ""
1223
+ },
1224
+ "modifiers": [
1225
+ "export",
1226
+ "async"
1227
+ ]
1245
1228
  },
1246
1229
  {
1247
1230
  "__schema": "TypeSchema",
@@ -1250,8 +1233,8 @@
1250
1233
  "line": 86,
1251
1234
  "character": 1
1252
1235
  },
1253
- "name": "TypeRefWithArgs",
1254
1236
  "signature": "type TypeRefWithArgs = T3<T1, T2>",
1237
+ "name": "TypeRefWithArgs",
1255
1238
  "type": {
1256
1239
  "__schema": "TypeRefSchema",
1257
1240
  "location": {
@@ -1292,8 +1275,8 @@
1292
1275
  "line": 88,
1293
1276
  "character": 1
1294
1277
  },
1295
- "name": "ParenthesizedType",
1296
1278
  "signature": "type ParenthesizedType = (T1 | T2)[]",
1279
+ "name": "ParenthesizedType",
1297
1280
  "type": {
1298
1281
  "__schema": "TypeArraySchema",
1299
1282
  "location": {
@@ -1348,11 +1331,8 @@
1348
1331
  "line": 90,
1349
1332
  "character": 1
1350
1333
  },
1351
- "name": "typePredicateFn",
1352
1334
  "signature": "function typePredicateFn(str: any): str is string",
1353
- "modifiers": [
1354
- "export"
1355
- ],
1335
+ "name": "typePredicateFn",
1356
1336
  "params": [
1357
1337
  {
1358
1338
  "__schema": "ParameterSchema",
@@ -1362,7 +1342,6 @@
1362
1342
  "character": 33
1363
1343
  },
1364
1344
  "name": "str",
1365
- "isOptional": false,
1366
1345
  "type": {
1367
1346
  "__schema": "KeywordTypeSchema",
1368
1347
  "location": {
@@ -1371,7 +1350,9 @@
1371
1350
  "character": 38
1372
1351
  },
1373
1352
  "name": "any"
1374
- }
1353
+ },
1354
+ "isOptional": false,
1355
+ "isSpread": false
1375
1356
  }
1376
1357
  ],
1377
1358
  "returnType": {
@@ -1382,7 +1363,6 @@
1382
1363
  "character": 44
1383
1364
  },
1384
1365
  "name": "str",
1385
- "hasAssertsModifier": false,
1386
1366
  "type": {
1387
1367
  "__schema": "KeywordTypeSchema",
1388
1368
  "location": {
@@ -1391,8 +1371,12 @@
1391
1371
  "character": 51
1392
1372
  },
1393
1373
  "name": "string"
1394
- }
1395
- }
1374
+ },
1375
+ "hasAssertsModifier": false
1376
+ },
1377
+ "modifiers": [
1378
+ "export"
1379
+ ]
1396
1380
  },
1397
1381
  {
1398
1382
  "__schema": "FunctionLikeSchema",
@@ -1401,11 +1385,8 @@
1401
1385
  "line": 94,
1402
1386
  "character": 1
1403
1387
  },
1404
- "name": "typePredicateNoTypeFn",
1405
1388
  "signature": "function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition",
1406
- "modifiers": [
1407
- "export"
1408
- ],
1389
+ "name": "typePredicateNoTypeFn",
1409
1390
  "params": [
1410
1391
  {
1411
1392
  "__schema": "ParameterSchema",
@@ -1415,7 +1396,6 @@
1415
1396
  "character": 39
1416
1397
  },
1417
1398
  "name": "condition",
1418
- "isOptional": false,
1419
1399
  "type": {
1420
1400
  "__schema": "KeywordTypeSchema",
1421
1401
  "location": {
@@ -1424,7 +1404,9 @@
1424
1404
  "character": 50
1425
1405
  },
1426
1406
  "name": "any"
1427
- }
1407
+ },
1408
+ "isOptional": false,
1409
+ "isSpread": false
1428
1410
  },
1429
1411
  {
1430
1412
  "__schema": "ParameterSchema",
@@ -1434,7 +1416,6 @@
1434
1416
  "character": 55
1435
1417
  },
1436
1418
  "name": "msg",
1437
- "isOptional": true,
1438
1419
  "type": {
1439
1420
  "__schema": "KeywordTypeSchema",
1440
1421
  "location": {
@@ -1443,7 +1424,9 @@
1443
1424
  "character": 61
1444
1425
  },
1445
1426
  "name": "string"
1446
- }
1427
+ },
1428
+ "isOptional": true,
1429
+ "isSpread": false
1447
1430
  }
1448
1431
  ],
1449
1432
  "returnType": {
@@ -1455,7 +1438,10 @@
1455
1438
  },
1456
1439
  "name": "condition",
1457
1440
  "hasAssertsModifier": true
1458
- }
1441
+ },
1442
+ "modifiers": [
1443
+ "export"
1444
+ ]
1459
1445
  },
1460
1446
  {
1461
1447
  "__schema": "FunctionLikeSchema",
@@ -1464,12 +1450,8 @@
1464
1450
  "line": 96,
1465
1451
  "character": 1
1466
1452
  },
1453
+ "signature": "function objectBindingElements({ prop }: {\n prop?: number | undefined;\n}): Promise<number>",
1467
1454
  "name": "objectBindingElements",
1468
- "signature": "function objectBindingElements({ prop }: {\n prop?: number;\n}): Promise<number>",
1469
- "modifiers": [
1470
- "export",
1471
- "async"
1472
- ],
1473
1455
  "params": [
1474
1456
  {
1475
1457
  "__schema": "ParameterSchema",
@@ -1479,7 +1461,6 @@
1479
1461
  "character": 45
1480
1462
  },
1481
1463
  "name": "{ prop = 1 }",
1482
- "isOptional": false,
1483
1464
  "type": {
1484
1465
  "__schema": "TypeLiteralSchema",
1485
1466
  "location": {
@@ -1495,11 +1476,12 @@
1495
1476
  "line": 96,
1496
1477
  "character": 45
1497
1478
  },
1498
- "type": "number",
1499
- "name": "prop"
1479
+ "name": "prop",
1480
+ "type": "number"
1500
1481
  }
1501
1482
  ]
1502
1483
  },
1484
+ "isOptional": false,
1503
1485
  "objectBindingNodes": [
1504
1486
  {
1505
1487
  "__schema": "InferenceTypeSchema",
@@ -1508,10 +1490,11 @@
1508
1490
  "line": 96,
1509
1491
  "character": 45
1510
1492
  },
1511
- "type": "number",
1512
- "name": "prop"
1493
+ "name": "prop",
1494
+ "type": "number"
1513
1495
  }
1514
- ]
1496
+ ],
1497
+ "isSpread": false
1515
1498
  }
1516
1499
  ],
1517
1500
  "returnType": {
@@ -1522,7 +1505,11 @@
1522
1505
  "character": 1
1523
1506
  },
1524
1507
  "type": "Promise<number>"
1525
- }
1508
+ },
1509
+ "modifiers": [
1510
+ "export",
1511
+ "async"
1512
+ ]
1526
1513
  },
1527
1514
  {
1528
1515
  "__schema": "FunctionLikeSchema",
@@ -1531,12 +1518,8 @@
1531
1518
  "line": 99,
1532
1519
  "character": 1
1533
1520
  },
1534
- "name": "arrayBindingElements",
1535
1521
  "signature": "function arrayBindingElements([prop]: [string]): Promise<string>",
1536
- "modifiers": [
1537
- "export",
1538
- "async"
1539
- ],
1522
+ "name": "arrayBindingElements",
1540
1523
  "params": [
1541
1524
  {
1542
1525
  "__schema": "ParameterSchema",
@@ -1546,7 +1529,6 @@
1546
1529
  "character": 44
1547
1530
  },
1548
1531
  "name": "[ prop ]",
1549
- "isOptional": false,
1550
1532
  "type": {
1551
1533
  "__schema": "TupleTypeSchema",
1552
1534
  "location": {
@@ -1565,7 +1547,9 @@
1565
1547
  "name": "string"
1566
1548
  }
1567
1549
  ]
1568
- }
1550
+ },
1551
+ "isOptional": false,
1552
+ "isSpread": false
1569
1553
  }
1570
1554
  ],
1571
1555
  "returnType": {
@@ -1576,7 +1560,11 @@
1576
1560
  "character": 1
1577
1561
  },
1578
1562
  "type": "Promise<string>"
1579
- }
1563
+ },
1564
+ "modifiers": [
1565
+ "export",
1566
+ "async"
1567
+ ]
1580
1568
  },
1581
1569
  {
1582
1570
  "__schema": "TypeSchema",
@@ -1585,8 +1573,8 @@
1585
1573
  "line": 106,
1586
1574
  "character": 1
1587
1575
  },
1588
- "name": "IndexedAccessType",
1589
1576
  "signature": "type IndexedAccessType = {\n a: string;\n b: boolean;\n}",
1577
+ "name": "IndexedAccessType",
1590
1578
  "type": {
1591
1579
  "__schema": "IndexedAccessSchema",
1592
1580
  "location": {
@@ -1622,9 +1610,8 @@
1622
1610
  "line": 109,
1623
1611
  "character": 1
1624
1612
  },
1625
- "name": "ComputedNameWithType",
1626
1613
  "signature": "interface ComputedNameWithType",
1627
- "extendsNodes": [],
1614
+ "name": "ComputedNameWithType",
1628
1615
  "members": [
1629
1616
  {
1630
1617
  "__schema": "VariableLikeSchema",
@@ -1633,9 +1620,8 @@
1633
1620
  "line": 110,
1634
1621
  "character": 3
1635
1622
  },
1636
- "name": "[computedName]",
1637
1623
  "signature": "[computedName]: boolean;",
1638
- "isOptional": false,
1624
+ "name": "[computedName]",
1639
1625
  "type": {
1640
1626
  "__schema": "KeywordTypeSchema",
1641
1627
  "location": {
@@ -1644,9 +1630,11 @@
1644
1630
  "character": 19
1645
1631
  },
1646
1632
  "name": "boolean"
1647
- }
1633
+ },
1634
+ "isOptional": false
1648
1635
  }
1649
- ]
1636
+ ],
1637
+ "extendsNodes": []
1650
1638
  },
1651
1639
  {
1652
1640
  "__schema": "InterfaceSchema",
@@ -1655,9 +1643,8 @@
1655
1643
  "line": 112,
1656
1644
  "character": 1
1657
1645
  },
1658
- "name": "ComputedNameNoType",
1659
1646
  "signature": "interface ComputedNameNoType",
1660
- "extendsNodes": [],
1647
+ "name": "ComputedNameNoType",
1661
1648
  "members": [
1662
1649
  {
1663
1650
  "__schema": "VariableLikeSchema",
@@ -1666,9 +1653,8 @@
1666
1653
  "line": 113,
1667
1654
  "character": 3
1668
1655
  },
1669
- "name": "[computedName]",
1670
1656
  "signature": "[computedName];",
1671
- "isOptional": false,
1657
+ "name": "[computedName]",
1672
1658
  "type": {
1673
1659
  "__schema": "InferenceTypeSchema",
1674
1660
  "location": {
@@ -1677,9 +1663,11 @@
1677
1663
  "character": 3
1678
1664
  },
1679
1665
  "type": "any"
1680
- }
1666
+ },
1667
+ "isOptional": false
1681
1668
  }
1682
- ]
1669
+ ],
1670
+ "extendsNodes": []
1683
1671
  },
1684
1672
  {
1685
1673
  "__schema": "TypeSchema",
@@ -1688,8 +1676,8 @@
1688
1676
  "line": 118,
1689
1677
  "character": 1
1690
1678
  },
1691
- "name": "templateLiteralType",
1692
1679
  "signature": "type templateLiteralType = \"hello world1-a hi world2\" | \"hello world1-b hi world2\"",
1680
+ "name": "templateLiteralType",
1693
1681
  "type": {
1694
1682
  "__schema": "TemplateLiteralTypeSchema",
1695
1683
  "location": {
@@ -1747,9 +1735,8 @@
1747
1735
  "line": 120,
1748
1736
  "character": 1
1749
1737
  },
1750
- "name": "CallSignatureWithTypeParams",
1751
1738
  "signature": "interface CallSignatureWithTypeParams",
1752
- "extendsNodes": [],
1739
+ "name": "CallSignatureWithTypeParams",
1753
1740
  "members": [
1754
1741
  {
1755
1742
  "__schema": "FunctionLikeSchema",
@@ -1758,12 +1745,8 @@
1758
1745
  "line": 121,
1759
1746
  "character": 3
1760
1747
  },
1748
+ "signature": "(a: string): T",
1761
1749
  "name": "",
1762
- "signature": "",
1763
- "modifiers": [],
1764
- "typeParams": [
1765
- "T"
1766
- ],
1767
1750
  "params": [
1768
1751
  {
1769
1752
  "__schema": "ParameterSchema",
@@ -1773,7 +1756,6 @@
1773
1756
  "character": 7
1774
1757
  },
1775
1758
  "name": "a",
1776
- "isOptional": false,
1777
1759
  "type": {
1778
1760
  "__schema": "KeywordTypeSchema",
1779
1761
  "location": {
@@ -1782,7 +1764,9 @@
1782
1764
  "character": 10
1783
1765
  },
1784
1766
  "name": "string"
1785
- }
1767
+ },
1768
+ "isOptional": false,
1769
+ "isSpread": false
1786
1770
  }
1787
1771
  ],
1788
1772
  "returnType": {
@@ -1792,11 +1776,16 @@
1792
1776
  "line": 121,
1793
1777
  "character": 19
1794
1778
  },
1795
- "type": "T",
1796
- "name": "T"
1797
- }
1779
+ "name": "T",
1780
+ "type": "T"
1781
+ },
1782
+ "modifiers": [],
1783
+ "typeParams": [
1784
+ "T"
1785
+ ]
1798
1786
  }
1799
- ]
1787
+ ],
1788
+ "extendsNodes": []
1800
1789
  },
1801
1790
  {
1802
1791
  "__schema": "TypeSchema",
@@ -1805,8 +1794,18 @@
1805
1794
  "line": 127,
1806
1795
  "character": 1
1807
1796
  },
1808
- "name": "If",
1797
+ "doc": {
1798
+ "__schema": "DocSchema",
1799
+ "location": {
1800
+ "filePath": "index.ts",
1801
+ "line": 124,
1802
+ "character": 1
1803
+ },
1804
+ "raw": "/**\n * Conditional Generic Type\n */",
1805
+ "comment": "Conditional Generic Type"
1806
+ },
1809
1807
  "signature": "type If<T, U, Y, N> = T extends U ? Y : N",
1808
+ "name": "If",
1810
1809
  "type": {
1811
1810
  "__schema": "ConditionalTypeSchema",
1812
1811
  "location": {
@@ -1821,8 +1820,8 @@
1821
1820
  "line": 127,
1822
1821
  "character": 30
1823
1822
  },
1824
- "type": "T",
1825
- "name": "T"
1823
+ "name": "T",
1824
+ "type": "T"
1826
1825
  },
1827
1826
  "extendsType": {
1828
1827
  "__schema": "InferenceTypeSchema",
@@ -1831,8 +1830,8 @@
1831
1830
  "line": 127,
1832
1831
  "character": 40
1833
1832
  },
1834
- "type": "U",
1835
- "name": "U"
1833
+ "name": "U",
1834
+ "type": "U"
1836
1835
  },
1837
1836
  "trueType": {
1838
1837
  "__schema": "InferenceTypeSchema",
@@ -1841,8 +1840,8 @@
1841
1840
  "line": 127,
1842
1841
  "character": 44
1843
1842
  },
1844
- "type": "Y",
1845
- "name": "Y"
1843
+ "name": "Y",
1844
+ "type": "Y"
1846
1845
  },
1847
1846
  "falseType": {
1848
1847
  "__schema": "InferenceTypeSchema",
@@ -1851,19 +1850,9 @@
1851
1850
  "line": 127,
1852
1851
  "character": 48
1853
1852
  },
1854
- "type": "N",
1855
- "name": "N"
1853
+ "name": "N",
1854
+ "type": "N"
1856
1855
  }
1857
- },
1858
- "doc": {
1859
- "__schema": "DocSchema",
1860
- "location": {
1861
- "filePath": "index.ts",
1862
- "line": 124,
1863
- "character": 1
1864
- },
1865
- "raw": "/**\n * Conditional Generic Type\n */",
1866
- "comment": "Conditional Generic Type"
1867
1856
  }
1868
1857
  },
1869
1858
  {
@@ -1873,14 +1862,8 @@
1873
1862
  "line": 129,
1874
1863
  "character": 1
1875
1864
  },
1876
- "name": "genericFunction",
1877
1865
  "signature": "function genericFunction<T>(a: T): <T>(a: T) => void",
1878
- "modifiers": [
1879
- "export"
1880
- ],
1881
- "typeParams": [
1882
- "T"
1883
- ],
1866
+ "name": "genericFunction",
1884
1867
  "params": [
1885
1868
  {
1886
1869
  "__schema": "ParameterSchema",
@@ -1890,7 +1873,6 @@
1890
1873
  "character": 36
1891
1874
  },
1892
1875
  "name": "a",
1893
- "isOptional": false,
1894
1876
  "type": {
1895
1877
  "__schema": "InferenceTypeSchema",
1896
1878
  "location": {
@@ -1898,9 +1880,11 @@
1898
1880
  "line": 129,
1899
1881
  "character": 39
1900
1882
  },
1901
- "type": "T",
1902
- "name": "T"
1903
- }
1883
+ "name": "T",
1884
+ "type": "T"
1885
+ },
1886
+ "isOptional": false,
1887
+ "isSpread": false
1904
1888
  }
1905
1889
  ],
1906
1890
  "returnType": {
@@ -1911,7 +1895,13 @@
1911
1895
  "character": 1
1912
1896
  },
1913
1897
  "type": "<T>(a: T) => void"
1914
- }
1898
+ },
1899
+ "modifiers": [
1900
+ "export"
1901
+ ],
1902
+ "typeParams": [
1903
+ "T"
1904
+ ]
1915
1905
  },
1916
1906
  {
1917
1907
  "__schema": "VariableLikeSchema",
@@ -1920,9 +1910,8 @@
1920
1910
  "line": 133,
1921
1911
  "character": 14
1922
1912
  },
1923
- "name": "gfnc2",
1924
1913
  "signature": "const gfnc2: <T>(a: T) => void",
1925
- "isOptional": false,
1914
+ "name": "gfnc2",
1926
1915
  "type": {
1927
1916
  "__schema": "InferenceTypeSchema",
1928
1917
  "location": {
@@ -1931,34 +1920,34 @@
1931
1920
  "character": 14
1932
1921
  },
1933
1922
  "type": "<T>(a: T) => void"
1934
- }
1923
+ },
1924
+ "isOptional": false,
1925
+ "defaultValue": "genericFunction<string>('')"
1935
1926
  }
1936
1927
  ],
1937
1928
  "internals": [
1938
1929
  {
1939
1930
  "__schema": "ClassSchema",
1940
- "name": "Foo",
1941
1931
  "location": {
1942
1932
  "filePath": "index.ts",
1943
1933
  "line": 34,
1944
1934
  "character": 1
1945
1935
  },
1946
1936
  "signature": "class Foo",
1937
+ "name": "Foo",
1938
+ "members": [],
1947
1939
  "extendsNodes": [],
1948
- "implementNodes": [],
1949
- "members": []
1940
+ "implementNodes": []
1950
1941
  },
1951
1942
  {
1952
1943
  "__schema": "ClassSchema",
1953
- "name": "ClassSomething",
1954
1944
  "location": {
1955
1945
  "filePath": "index.ts",
1956
1946
  "line": 36,
1957
1947
  "character": 1
1958
1948
  },
1959
1949
  "signature": "class ClassSomething",
1960
- "extendsNodes": [],
1961
- "implementNodes": [],
1950
+ "name": "ClassSomething",
1962
1951
  "members": [
1963
1952
  {
1964
1953
  "__schema": "VariableLikeSchema",
@@ -1967,9 +1956,8 @@
1967
1956
  "line": 37,
1968
1957
  "character": 3
1969
1958
  },
1970
- "name": "app",
1971
1959
  "signature": "(property) ClassSomething.app: string",
1972
- "isOptional": false,
1960
+ "name": "app",
1973
1961
  "type": {
1974
1962
  "__schema": "InferenceTypeSchema",
1975
1963
  "location": {
@@ -1978,7 +1966,9 @@
1978
1966
  "character": 3
1979
1967
  },
1980
1968
  "type": "string"
1981
- }
1969
+ },
1970
+ "isOptional": false,
1971
+ "defaultValue": "''"
1982
1972
  },
1983
1973
  {
1984
1974
  "__schema": "ConstructorSchema",
@@ -1987,9 +1977,8 @@
1987
1977
  "line": 38,
1988
1978
  "character": 3
1989
1979
  },
1990
- "name": "constructor",
1991
1980
  "signature": "constructor ClassSomething(da: 'dsa'): ClassSomething",
1992
- "modifiers": [],
1981
+ "name": "constructor",
1993
1982
  "params": [
1994
1983
  {
1995
1984
  "__schema": "ParameterSchema",
@@ -1999,7 +1988,6 @@
1999
1988
  "character": 15
2000
1989
  },
2001
1990
  "name": "da",
2002
- "isOptional": false,
2003
1991
  "type": {
2004
1992
  "__schema": "LiteralTypeSchema",
2005
1993
  "location": {
@@ -2008,7 +1996,9 @@
2008
1996
  "character": 28
2009
1997
  },
2010
1998
  "name": "'dsa'"
2011
- }
1999
+ },
2000
+ "isOptional": false,
2001
+ "isSpread": false
2012
2002
  }
2013
2003
  ],
2014
2004
  "returnType": {
@@ -2018,7 +2008,8 @@
2018
2008
  "line": 36,
2019
2009
  "character": 1
2020
2010
  }
2021
- }
2011
+ },
2012
+ "modifiers": []
2022
2013
  },
2023
2014
  {
2024
2015
  "__schema": "FunctionLikeSchema",
@@ -2027,9 +2018,8 @@
2027
2018
  "line": 40,
2028
2019
  "character": 3
2029
2020
  },
2030
- "name": "a",
2031
2021
  "signature": "(method) ClassSomething.a(): Foo",
2032
- "modifiers": [],
2022
+ "name": "a",
2033
2023
  "params": [],
2034
2024
  "returnType": {
2035
2025
  "__schema": "TypeRefSchema",
@@ -2040,7 +2030,8 @@
2040
2030
  },
2041
2031
  "name": "Foo",
2042
2032
  "internalFilePath": "index.ts"
2043
- }
2033
+ },
2034
+ "modifiers": []
2044
2035
  },
2045
2036
  {
2046
2037
  "__schema": "GetAccessorSchema",
@@ -2049,8 +2040,8 @@
2049
2040
  "line": 43,
2050
2041
  "character": 3
2051
2042
  },
2052
- "name": "getter",
2053
2043
  "signature": "(getter) ClassSomething.getter: string",
2044
+ "name": "getter",
2054
2045
  "type": {
2055
2046
  "__schema": "InferenceTypeSchema",
2056
2047
  "location": {
@@ -2068,8 +2059,8 @@
2068
2059
  "line": 47,
2069
2060
  "character": 3
2070
2061
  },
2071
- "name": "setter",
2072
2062
  "signature": "(setter) ClassSomething.setter: boolean",
2063
+ "name": "setter",
2073
2064
  "param": {
2074
2065
  "__schema": "ParameterSchema",
2075
2066
  "location": {
@@ -2078,7 +2069,6 @@
2078
2069
  "character": 14
2079
2070
  },
2080
2071
  "name": "a",
2081
- "isOptional": false,
2082
2072
  "type": {
2083
2073
  "__schema": "KeywordTypeSchema",
2084
2074
  "location": {
@@ -2087,10 +2077,14 @@
2087
2077
  "character": 17
2088
2078
  },
2089
2079
  "name": "boolean"
2090
- }
2080
+ },
2081
+ "isOptional": false,
2082
+ "isSpread": false
2091
2083
  }
2092
2084
  }
2093
- ]
2085
+ ],
2086
+ "extendsNodes": [],
2087
+ "implementNodes": []
2094
2088
  },
2095
2089
  {
2096
2090
  "__schema": "ModuleSchema",
@@ -2107,9 +2101,8 @@
2107
2101
  "line": 59,
2108
2102
  "character": 7
2109
2103
  },
2110
- "name": "obj",
2111
2104
  "signature": "const obj: {\n a: number;\n b: number;\n}",
2112
- "isOptional": false,
2105
+ "name": "obj",
2113
2106
  "type": {
2114
2107
  "__schema": "InferenceTypeSchema",
2115
2108
  "location": {
@@ -2118,22 +2111,22 @@
2118
2111
  "character": 7
2119
2112
  },
2120
2113
  "type": "{\n a: number;\n b: number;\n}"
2121
- }
2114
+ },
2115
+ "isOptional": false,
2116
+ "defaultValue": "{ a: 1, b: 2 }"
2122
2117
  }
2123
2118
  ],
2124
2119
  "internals": []
2125
2120
  },
2126
2121
  {
2127
2122
  "__schema": "ClassSchema",
2128
- "name": "Bar",
2129
2123
  "location": {
2130
2124
  "filePath": "index.ts",
2131
2125
  "line": 66,
2132
2126
  "character": 1
2133
2127
  },
2134
2128
  "signature": "class Bar",
2135
- "extendsNodes": [],
2136
- "implementNodes": [],
2129
+ "name": "Bar",
2137
2130
  "members": [
2138
2131
  {
2139
2132
  "__schema": "FunctionLikeSchema",
@@ -2142,9 +2135,8 @@
2142
2135
  "line": 67,
2143
2136
  "character": 3
2144
2137
  },
2145
- "name": "foo",
2146
2138
  "signature": "(method) Bar.foo(): void",
2147
- "modifiers": [],
2139
+ "name": "foo",
2148
2140
  "params": [],
2149
2141
  "returnType": {
2150
2142
  "__schema": "InferenceTypeSchema",
@@ -2154,52 +2146,55 @@
2154
2146
  "character": 3
2155
2147
  },
2156
2148
  "type": "void"
2157
- }
2149
+ },
2150
+ "modifiers": []
2158
2151
  }
2159
- ]
2152
+ ],
2153
+ "extendsNodes": [],
2154
+ "implementNodes": []
2160
2155
  },
2161
2156
  {
2162
2157
  "__schema": "ClassSchema",
2163
- "name": "T1",
2164
2158
  "location": {
2165
2159
  "filePath": "index.ts",
2166
2160
  "line": 83,
2167
2161
  "character": 1
2168
2162
  },
2169
2163
  "signature": "class T1",
2164
+ "name": "T1",
2165
+ "members": [],
2170
2166
  "extendsNodes": [],
2171
- "implementNodes": [],
2172
- "members": []
2167
+ "implementNodes": []
2173
2168
  },
2174
2169
  {
2175
2170
  "__schema": "ClassSchema",
2176
- "name": "T2",
2177
2171
  "location": {
2178
2172
  "filePath": "index.ts",
2179
2173
  "line": 84,
2180
2174
  "character": 1
2181
2175
  },
2182
2176
  "signature": "class T2",
2177
+ "name": "T2",
2178
+ "members": [],
2183
2179
  "extendsNodes": [],
2184
- "implementNodes": [],
2185
- "members": []
2180
+ "implementNodes": []
2186
2181
  },
2187
2182
  {
2188
2183
  "__schema": "ClassSchema",
2189
- "name": "T3",
2190
2184
  "location": {
2191
2185
  "filePath": "index.ts",
2192
2186
  "line": 85,
2193
2187
  "character": 1
2194
2188
  },
2195
2189
  "signature": "class T3<T, K>",
2190
+ "name": "T3",
2191
+ "members": [],
2196
2192
  "typeParams": [
2197
2193
  "T",
2198
2194
  "K"
2199
2195
  ],
2200
2196
  "extendsNodes": [],
2201
- "implementNodes": [],
2202
- "members": []
2197
+ "implementNodes": []
2203
2198
  },
2204
2199
  {
2205
2200
  "__schema": "InterfaceSchema",
@@ -2208,9 +2203,8 @@
2208
2203
  "line": 103,
2209
2204
  "character": 1
2210
2205
  },
2211
- "name": "config",
2212
2206
  "signature": "interface config",
2213
- "extendsNodes": [],
2207
+ "name": "config",
2214
2208
  "members": [
2215
2209
  {
2216
2210
  "__schema": "VariableLikeSchema",
@@ -2219,9 +2213,8 @@
2219
2213
  "line": 104,
2220
2214
  "character": 3
2221
2215
  },
2222
- "name": "someField",
2223
2216
  "signature": "(property) config.someField: {\n a: string;\n b: boolean;\n}",
2224
- "isOptional": false,
2217
+ "name": "someField",
2225
2218
  "type": {
2226
2219
  "__schema": "TypeLiteralSchema",
2227
2220
  "location": {
@@ -2237,9 +2230,8 @@
2237
2230
  "line": 104,
2238
2231
  "character": 16
2239
2232
  },
2240
- "name": "a",
2241
2233
  "signature": "(property) a: string",
2242
- "isOptional": false,
2234
+ "name": "a",
2243
2235
  "type": {
2244
2236
  "__schema": "KeywordTypeSchema",
2245
2237
  "location": {
@@ -2248,7 +2240,8 @@
2248
2240
  "character": 19
2249
2241
  },
2250
2242
  "name": "string"
2251
- }
2243
+ },
2244
+ "isOptional": false
2252
2245
  },
2253
2246
  {
2254
2247
  "__schema": "VariableLikeSchema",
@@ -2257,9 +2250,8 @@
2257
2250
  "line": 104,
2258
2251
  "character": 27
2259
2252
  },
2260
- "name": "b",
2261
2253
  "signature": "(property) b: boolean",
2262
- "isOptional": false,
2254
+ "name": "b",
2263
2255
  "type": {
2264
2256
  "__schema": "KeywordTypeSchema",
2265
2257
  "location": {
@@ -2268,12 +2260,15 @@
2268
2260
  "character": 30
2269
2261
  },
2270
2262
  "name": "boolean"
2271
- }
2263
+ },
2264
+ "isOptional": false
2272
2265
  }
2273
2266
  ]
2274
- }
2267
+ },
2268
+ "isOptional": false
2275
2269
  }
2276
- ]
2270
+ ],
2271
+ "extendsNodes": []
2277
2272
  },
2278
2273
  {
2279
2274
  "__schema": "ModuleSchema",
@@ -2290,9 +2285,8 @@
2290
2285
  "line": 108,
2291
2286
  "character": 7
2292
2287
  },
2293
- "name": "computedName",
2294
2288
  "signature": "const computedName: \"str\"",
2295
- "isOptional": false,
2289
+ "name": "computedName",
2296
2290
  "type": {
2297
2291
  "__schema": "InferenceTypeSchema",
2298
2292
  "location": {
@@ -2301,7 +2295,9 @@
2301
2295
  "character": 7
2302
2296
  },
2303
2297
  "type": "\"str\""
2304
- }
2298
+ },
2299
+ "isOptional": false,
2300
+ "defaultValue": "'str'"
2305
2301
  }
2306
2302
  ],
2307
2303
  "internals": []
@@ -2313,8 +2309,8 @@
2313
2309
  "line": 116,
2314
2310
  "character": 1
2315
2311
  },
2316
- "name": "World1",
2317
2312
  "signature": "type World1 = \"world1-a\" | \"world1-b\"",
2313
+ "name": "World1",
2318
2314
  "type": {
2319
2315
  "__schema": "TypeUnionSchema",
2320
2316
  "location": {
@@ -2351,8 +2347,8 @@
2351
2347
  "line": 117,
2352
2348
  "character": 1
2353
2349
  },
2354
- "name": "World2",
2355
2350
  "signature": "type World2 = \"world2\"",
2351
+ "name": "World2",
2356
2352
  "type": {
2357
2353
  "__schema": "LiteralTypeSchema",
2358
2354
  "location": {
@@ -2370,7 +2366,7 @@
2370
2366
  "__schema": "ModuleSchema",
2371
2367
  "location": {
2372
2368
  "filePath": "button.tsx",
2373
- "line": 2,
2369
+ "line": 1,
2374
2370
  "character": 1
2375
2371
  },
2376
2372
  "exports": [
@@ -2378,16 +2374,16 @@
2378
2374
  "__schema": "TypeSchema",
2379
2375
  "location": {
2380
2376
  "filePath": "button.tsx",
2381
- "line": 7,
2377
+ "line": 6,
2382
2378
  "character": 1
2383
2379
  },
2384
- "name": "ButtonElementType",
2385
2380
  "signature": "type ButtonElementType = \"a\" | \"button\"",
2381
+ "name": "ButtonElementType",
2386
2382
  "type": {
2387
2383
  "__schema": "TypeUnionSchema",
2388
2384
  "location": {
2389
2385
  "filePath": "button.tsx",
2390
- "line": 7,
2386
+ "line": 6,
2391
2387
  "character": 33
2392
2388
  },
2393
2389
  "types": [
@@ -2395,7 +2391,7 @@
2395
2391
  "__schema": "LiteralTypeSchema",
2396
2392
  "location": {
2397
2393
  "filePath": "button.tsx",
2398
- "line": 7,
2394
+ "line": 6,
2399
2395
  "character": 33
2400
2396
  },
2401
2397
  "name": "'a'"
@@ -2404,7 +2400,7 @@
2404
2400
  "__schema": "LiteralTypeSchema",
2405
2401
  "location": {
2406
2402
  "filePath": "button.tsx",
2407
- "line": 7,
2403
+ "line": 6,
2408
2404
  "character": 39
2409
2405
  },
2410
2406
  "name": "'button'"
@@ -2416,16 +2412,16 @@
2416
2412
  "__schema": "TypeSchema",
2417
2413
  "location": {
2418
2414
  "filePath": "button.tsx",
2419
- "line": 9,
2415
+ "line": 8,
2420
2416
  "character": 1
2421
2417
  },
2422
- "name": "ButtonProps",
2423
2418
  "signature": "type ButtonProps = any",
2419
+ "name": "ButtonProps",
2424
2420
  "type": {
2425
2421
  "__schema": "TypeIntersectionSchema",
2426
2422
  "location": {
2427
2423
  "filePath": "button.tsx",
2428
- "line": 9,
2424
+ "line": 8,
2429
2425
  "character": 27
2430
2426
  },
2431
2427
  "types": [
@@ -2433,7 +2429,7 @@
2433
2429
  "__schema": "TypeLiteralSchema",
2434
2430
  "location": {
2435
2431
  "filePath": "button.tsx",
2436
- "line": 9,
2432
+ "line": 8,
2437
2433
  "character": 27
2438
2434
  },
2439
2435
  "members": [
@@ -2441,92 +2437,92 @@
2441
2437
  "__schema": "VariableLikeSchema",
2442
2438
  "location": {
2443
2439
  "filePath": "button.tsx",
2444
- "line": 13,
2440
+ "line": 12,
2445
2441
  "character": 3
2446
2442
  },
2447
- "name": "children",
2443
+ "doc": {
2444
+ "__schema": "DocSchema",
2445
+ "location": {
2446
+ "filePath": "button.tsx",
2447
+ "line": 9,
2448
+ "character": 3
2449
+ },
2450
+ "raw": "/**\n * children of the Button.\n */",
2451
+ "comment": "children of the Button."
2452
+ },
2448
2453
  "signature": "(property) children: ReactNode",
2449
- "isOptional": false,
2454
+ "name": "children",
2450
2455
  "type": {
2451
2456
  "__schema": "TypeRefSchema",
2452
2457
  "location": {
2453
2458
  "filePath": "button.tsx",
2454
- "line": 13,
2459
+ "line": 12,
2455
2460
  "character": 3
2456
2461
  },
2457
2462
  "name": "ReactNode",
2458
2463
  "packageName": "react"
2459
2464
  },
2460
- "doc": {
2461
- "__schema": "DocSchema",
2462
- "location": {
2463
- "filePath": "button.tsx",
2464
- "line": 10,
2465
- "character": 3
2466
- },
2467
- "raw": "/**\n * children of the Button.\n */",
2468
- "comment": "children of the Button."
2469
- }
2465
+ "isOptional": false
2470
2466
  },
2471
2467
  {
2472
2468
  "__schema": "VariableLikeSchema",
2473
2469
  "location": {
2474
2470
  "filePath": "button.tsx",
2475
- "line": 18,
2471
+ "line": 17,
2476
2472
  "character": 3
2477
2473
  },
2474
+ "doc": {
2475
+ "__schema": "DocSchema",
2476
+ "location": {
2477
+ "filePath": "button.tsx",
2478
+ "line": 14,
2479
+ "character": 3
2480
+ },
2481
+ "raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
2482
+ "comment": "link to target page. once href is used, Button is considered an A tag."
2483
+ },
2484
+ "signature": "(property) href?: string | undefined",
2478
2485
  "name": "href",
2479
- "signature": "(property) href?: string",
2480
- "isOptional": true,
2481
2486
  "type": {
2482
2487
  "__schema": "KeywordTypeSchema",
2483
2488
  "location": {
2484
2489
  "filePath": "button.tsx",
2485
- "line": 18,
2490
+ "line": 17,
2486
2491
  "character": 10
2487
2492
  },
2488
2493
  "name": "string"
2489
2494
  },
2490
- "doc": {
2491
- "__schema": "DocSchema",
2492
- "location": {
2493
- "filePath": "button.tsx",
2494
- "line": 15,
2495
- "character": 3
2496
- },
2497
- "raw": "/**\n * link to target page. once href is used, Button is considered an A tag.\n */",
2498
- "comment": "link to target page. once href is used, Button is considered an A tag."
2499
- }
2495
+ "isOptional": true
2500
2496
  },
2501
2497
  {
2502
2498
  "__schema": "VariableLikeSchema",
2503
2499
  "location": {
2504
2500
  "filePath": "button.tsx",
2505
- "line": 23,
2501
+ "line": 22,
2506
2502
  "character": 3
2507
2503
  },
2504
+ "doc": {
2505
+ "__schema": "DocSchema",
2506
+ "location": {
2507
+ "filePath": "button.tsx",
2508
+ "line": 19,
2509
+ "character": 3
2510
+ },
2511
+ "raw": "/**\n * class names to inject.\n */",
2512
+ "comment": "class names to inject."
2513
+ },
2514
+ "signature": "(property) className?: string | undefined",
2508
2515
  "name": "className",
2509
- "signature": "(property) className?: string",
2510
- "isOptional": true,
2511
2516
  "type": {
2512
2517
  "__schema": "KeywordTypeSchema",
2513
2518
  "location": {
2514
2519
  "filePath": "button.tsx",
2515
- "line": 23,
2520
+ "line": 22,
2516
2521
  "character": 15
2517
2522
  },
2518
2523
  "name": "string"
2519
2524
  },
2520
- "doc": {
2521
- "__schema": "DocSchema",
2522
- "location": {
2523
- "filePath": "button.tsx",
2524
- "line": 20,
2525
- "character": 3
2526
- },
2527
- "raw": "/**\n * class names to inject.\n */",
2528
- "comment": "class names to inject."
2529
- }
2525
+ "isOptional": true
2530
2526
  }
2531
2527
  ]
2532
2528
  },
@@ -2534,7 +2530,7 @@
2534
2530
  "__schema": "InferenceTypeSchema",
2535
2531
  "location": {
2536
2532
  "filePath": "button.tsx",
2537
- "line": 24,
2533
+ "line": 23,
2538
2534
  "character": 5
2539
2535
  },
2540
2536
  "name": "React.ButtonHTMLAttributes"
@@ -2546,80 +2542,81 @@
2546
2542
  "__schema": "FunctionLikeSchema",
2547
2543
  "location": {
2548
2544
  "filePath": "button.tsx",
2549
- "line": 26,
2545
+ "line": 25,
2550
2546
  "character": 1
2551
2547
  },
2552
- "name": "Button",
2553
2548
  "signature": "function Button(props: ButtonProps): any",
2554
- "modifiers": [
2555
- "export"
2556
- ],
2549
+ "name": "Button",
2557
2550
  "params": [
2558
2551
  {
2559
2552
  "__schema": "ParameterSchema",
2560
2553
  "location": {
2561
2554
  "filePath": "button.tsx",
2562
- "line": 26,
2555
+ "line": 25,
2563
2556
  "character": 24
2564
2557
  },
2565
2558
  "name": "props",
2566
- "isOptional": false,
2567
2559
  "type": {
2568
2560
  "__schema": "TypeRefSchema",
2569
2561
  "location": {
2570
2562
  "filePath": "button.tsx",
2571
- "line": 26,
2563
+ "line": 25,
2572
2564
  "character": 31
2573
2565
  },
2574
2566
  "name": "ButtonProps",
2575
2567
  "internalFilePath": "button.tsx"
2576
- }
2568
+ },
2569
+ "isOptional": false,
2570
+ "isSpread": false
2577
2571
  }
2578
2572
  ],
2579
2573
  "returnType": {
2580
2574
  "__schema": "InferenceTypeSchema",
2581
2575
  "location": {
2582
2576
  "filePath": "button.tsx",
2583
- "line": 26,
2577
+ "line": 25,
2584
2578
  "character": 1
2585
2579
  },
2586
2580
  "type": "any"
2587
- }
2581
+ },
2582
+ "modifiers": [
2583
+ "export"
2584
+ ]
2588
2585
  },
2589
2586
  {
2590
2587
  "__schema": "ClassSchema",
2591
- "name": "Bar",
2592
2588
  "location": {
2593
2589
  "filePath": "button.tsx",
2594
- "line": 61,
2590
+ "line": 60,
2595
2591
  "character": 1
2596
2592
  },
2597
2593
  "signature": "class Bar",
2598
- "extendsNodes": [],
2599
- "implementNodes": [],
2594
+ "name": "Bar",
2600
2595
  "members": [
2601
2596
  {
2602
2597
  "__schema": "FunctionLikeSchema",
2603
2598
  "location": {
2604
2599
  "filePath": "button.tsx",
2605
- "line": 62,
2600
+ "line": 61,
2606
2601
  "character": 3
2607
2602
  },
2608
- "name": "foo",
2609
2603
  "signature": "(method) Bar.foo(): void",
2610
- "modifiers": [],
2604
+ "name": "foo",
2611
2605
  "params": [],
2612
2606
  "returnType": {
2613
2607
  "__schema": "InferenceTypeSchema",
2614
2608
  "location": {
2615
2609
  "filePath": "button.tsx",
2616
- "line": 62,
2610
+ "line": 61,
2617
2611
  "character": 3
2618
2612
  },
2619
2613
  "type": "void"
2620
- }
2614
+ },
2615
+ "modifiers": []
2621
2616
  }
2622
- ]
2617
+ ],
2618
+ "extendsNodes": [],
2619
+ "implementNodes": []
2623
2620
  }
2624
2621
  ],
2625
2622
  "internals": []