@teambit/schema 1.0.258 → 1.0.259

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.
@@ -22,13 +22,132 @@
22
22
  },
23
23
  "name": "Parser",
24
24
  "exportNode": {
25
- "__schema": "TypeRefSchema",
25
+ "__schema": "InterfaceSchema",
26
26
  "location": {
27
- "filePath": "index.ts",
27
+ "filePath": "parser.ts",
28
28
  "line": 3,
29
- "character": 15
29
+ "character": 1
30
30
  },
31
- "name": "Parser"
31
+ "signature": "interface Parser",
32
+ "name": "Parser",
33
+ "members": [
34
+ {
35
+ "__schema": "VariableLikeSchema",
36
+ "location": {
37
+ "filePath": "parser.ts",
38
+ "line": 7,
39
+ "character": 3
40
+ },
41
+ "doc": {
42
+ "__schema": "DocSchema",
43
+ "location": {
44
+ "filePath": "parser.ts",
45
+ "line": 4,
46
+ "character": 3
47
+ },
48
+ "raw": "/**\n * regex to apply on which components compiler applies.\n */",
49
+ "comment": "regex to apply on which components compiler applies."
50
+ },
51
+ "signature": "(property) Parser.extension: RegExp",
52
+ "name": "extension",
53
+ "type": {
54
+ "__schema": "TypeRefSchema",
55
+ "location": {
56
+ "filePath": "parser.ts",
57
+ "line": 7,
58
+ "character": 14
59
+ },
60
+ "name": "RegExp"
61
+ },
62
+ "isOptional": false
63
+ },
64
+ {
65
+ "__schema": "FunctionLikeSchema",
66
+ "location": {
67
+ "filePath": "parser.ts",
68
+ "line": 12,
69
+ "character": 3
70
+ },
71
+ "doc": {
72
+ "__schema": "DocSchema",
73
+ "location": {
74
+ "filePath": "parser.ts",
75
+ "line": 9,
76
+ "character": 3
77
+ },
78
+ "raw": "/**\n * parse a module.\n */",
79
+ "comment": "parse a module."
80
+ },
81
+ "signature": "(method) Parser.parseModule(modulePath: string, content?: string): Export[]",
82
+ "name": "parseModule",
83
+ "params": [
84
+ {
85
+ "__schema": "ParameterSchema",
86
+ "location": {
87
+ "filePath": "parser.ts",
88
+ "line": 12,
89
+ "character": 15
90
+ },
91
+ "name": "modulePath",
92
+ "type": {
93
+ "__schema": "KeywordTypeSchema",
94
+ "location": {
95
+ "filePath": "parser.ts",
96
+ "line": 12,
97
+ "character": 27
98
+ },
99
+ "name": "string"
100
+ },
101
+ "isOptional": false,
102
+ "isSpread": false
103
+ },
104
+ {
105
+ "__schema": "ParameterSchema",
106
+ "location": {
107
+ "filePath": "parser.ts",
108
+ "line": 12,
109
+ "character": 35
110
+ },
111
+ "name": "content",
112
+ "type": {
113
+ "__schema": "KeywordTypeSchema",
114
+ "location": {
115
+ "filePath": "parser.ts",
116
+ "line": 12,
117
+ "character": 45
118
+ },
119
+ "name": "string"
120
+ },
121
+ "isOptional": true,
122
+ "isSpread": false
123
+ }
124
+ ],
125
+ "returnType": {
126
+ "__schema": "TypeArraySchema",
127
+ "location": {
128
+ "filePath": "parser.ts",
129
+ "line": 12,
130
+ "character": 54
131
+ },
132
+ "type": {
133
+ "__schema": "TypeRefSchema",
134
+ "location": {
135
+ "filePath": "parser.ts",
136
+ "line": 12,
137
+ "character": 54
138
+ },
139
+ "name": "Export",
140
+ "componentId": {
141
+ "scope": "teambit.semantics",
142
+ "name": "entities/semantic-schema",
143
+ "version": "0.0.69"
144
+ }
145
+ }
146
+ },
147
+ "modifiers": []
148
+ }
149
+ ],
150
+ "extendsNodes": []
32
151
  }
33
152
  },
34
153
  {
@@ -40,13 +159,140 @@
40
159
  },
41
160
  "name": "SchemaExtractor",
42
161
  "exportNode": {
43
- "__schema": "TypeRefSchema",
162
+ "__schema": "InterfaceSchema",
44
163
  "location": {
45
- "filePath": "index.ts",
46
- "line": 4,
47
- "character": 15
164
+ "filePath": "schema-extractor.ts",
165
+ "line": 5,
166
+ "character": 1
48
167
  },
49
- "name": "SchemaExtractor"
168
+ "signature": "interface SchemaExtractor",
169
+ "name": "SchemaExtractor",
170
+ "members": [
171
+ {
172
+ "__schema": "FunctionLikeSchema",
173
+ "location": {
174
+ "filePath": "schema-extractor.ts",
175
+ "line": 9,
176
+ "character": 3
177
+ },
178
+ "doc": {
179
+ "__schema": "DocSchema",
180
+ "location": {
181
+ "filePath": "schema-extractor.ts",
182
+ "line": 6,
183
+ "character": 3
184
+ },
185
+ "raw": "/**\n * extract a semantic schema from a component.\n */",
186
+ "comment": "extract a semantic schema from a component."
187
+ },
188
+ "signature": "(method) SchemaExtractor.extract(component: Component, options?: SchemaExtractorOptions): Promise<APISchema>",
189
+ "name": "extract",
190
+ "params": [
191
+ {
192
+ "__schema": "ParameterSchema",
193
+ "location": {
194
+ "filePath": "schema-extractor.ts",
195
+ "line": 9,
196
+ "character": 11
197
+ },
198
+ "name": "component",
199
+ "type": {
200
+ "__schema": "TypeRefSchema",
201
+ "location": {
202
+ "filePath": "schema-extractor.ts",
203
+ "line": 9,
204
+ "character": 22
205
+ },
206
+ "name": "Component",
207
+ "componentId": {
208
+ "scope": "teambit.component",
209
+ "name": "component"
210
+ }
211
+ },
212
+ "isOptional": false,
213
+ "isSpread": false
214
+ },
215
+ {
216
+ "__schema": "ParameterSchema",
217
+ "location": {
218
+ "filePath": "schema-extractor.ts",
219
+ "line": 9,
220
+ "character": 33
221
+ },
222
+ "name": "options",
223
+ "type": {
224
+ "__schema": "TypeRefSchema",
225
+ "location": {
226
+ "filePath": "schema-extractor.ts",
227
+ "line": 9,
228
+ "character": 43
229
+ },
230
+ "name": "SchemaExtractorOptions"
231
+ },
232
+ "isOptional": true,
233
+ "isSpread": false
234
+ }
235
+ ],
236
+ "returnType": {
237
+ "__schema": "TypeRefSchema",
238
+ "location": {
239
+ "filePath": "schema-extractor.ts",
240
+ "line": 9,
241
+ "character": 68
242
+ },
243
+ "name": "Promise",
244
+ "typeArgs": [
245
+ {
246
+ "__schema": "TypeRefSchema",
247
+ "location": {
248
+ "filePath": "schema-extractor.ts",
249
+ "line": 9,
250
+ "character": 76
251
+ },
252
+ "name": "APISchema",
253
+ "componentId": {
254
+ "scope": "teambit.semantics",
255
+ "name": "entities/semantic-schema",
256
+ "version": "0.0.69"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ "modifiers": []
262
+ },
263
+ {
264
+ "__schema": "FunctionLikeSchema",
265
+ "location": {
266
+ "filePath": "schema-extractor.ts",
267
+ "line": 16,
268
+ "character": 3
269
+ },
270
+ "doc": {
271
+ "__schema": "DocSchema",
272
+ "location": {
273
+ "filePath": "schema-extractor.ts",
274
+ "line": 10,
275
+ "character": 3
276
+ },
277
+ "raw": "/**\n * release resources if no schemas are needed for this process.\n * for typescript, this will kill the tsserver process.\n * for performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\n * components will be very slow.\n */",
278
+ "comment": "release resources if no schemas are needed for this process.\nfor typescript, this will kill the tsserver process.\nfor performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\ncomponents will be very slow."
279
+ },
280
+ "signature": "(method) SchemaExtractor.dispose(): void",
281
+ "name": "dispose",
282
+ "params": [],
283
+ "returnType": {
284
+ "__schema": "KeywordTypeSchema",
285
+ "location": {
286
+ "filePath": "schema-extractor.ts",
287
+ "line": 16,
288
+ "character": 14
289
+ },
290
+ "name": "void"
291
+ },
292
+ "modifiers": []
293
+ }
294
+ ],
295
+ "extendsNodes": []
50
296
  }
51
297
  },
52
298
  {
@@ -58,13 +304,108 @@
58
304
  },
59
305
  "name": "SchemaExtractorOptions",
60
306
  "exportNode": {
61
- "__schema": "TypeRefSchema",
307
+ "__schema": "TypeSchema",
62
308
  "location": {
63
- "filePath": "index.ts",
64
- "line": 5,
65
- "character": 15
309
+ "filePath": "schema-extractor.ts",
310
+ "line": 19,
311
+ "character": 1
66
312
  },
67
- "name": "SchemaExtractorOptions"
313
+ "signature": "type SchemaExtractorOptions = {\n formatter?: Formatter | undefined;\n tsserverPath?: string | undefined;\n contextPath?: string | undefined;\n skipInternals?: boolean | undefined;\n}",
314
+ "name": "SchemaExtractorOptions",
315
+ "type": {
316
+ "__schema": "TypeLiteralSchema",
317
+ "location": {
318
+ "filePath": "schema-extractor.ts",
319
+ "line": 19,
320
+ "character": 38
321
+ },
322
+ "members": [
323
+ {
324
+ "__schema": "VariableLikeSchema",
325
+ "location": {
326
+ "filePath": "schema-extractor.ts",
327
+ "line": 20,
328
+ "character": 3
329
+ },
330
+ "signature": "(property) formatter?: Formatter | undefined",
331
+ "name": "formatter",
332
+ "type": {
333
+ "__schema": "TypeRefSchema",
334
+ "location": {
335
+ "filePath": "schema-extractor.ts",
336
+ "line": 20,
337
+ "character": 15
338
+ },
339
+ "name": "Formatter",
340
+ "componentId": {
341
+ "scope": "teambit.defender",
342
+ "name": "formatter"
343
+ }
344
+ },
345
+ "isOptional": true
346
+ },
347
+ {
348
+ "__schema": "VariableLikeSchema",
349
+ "location": {
350
+ "filePath": "schema-extractor.ts",
351
+ "line": 21,
352
+ "character": 3
353
+ },
354
+ "signature": "(property) tsserverPath?: string | undefined",
355
+ "name": "tsserverPath",
356
+ "type": {
357
+ "__schema": "KeywordTypeSchema",
358
+ "location": {
359
+ "filePath": "schema-extractor.ts",
360
+ "line": 21,
361
+ "character": 18
362
+ },
363
+ "name": "string"
364
+ },
365
+ "isOptional": true
366
+ },
367
+ {
368
+ "__schema": "VariableLikeSchema",
369
+ "location": {
370
+ "filePath": "schema-extractor.ts",
371
+ "line": 22,
372
+ "character": 3
373
+ },
374
+ "signature": "(property) contextPath?: string | undefined",
375
+ "name": "contextPath",
376
+ "type": {
377
+ "__schema": "KeywordTypeSchema",
378
+ "location": {
379
+ "filePath": "schema-extractor.ts",
380
+ "line": 22,
381
+ "character": 17
382
+ },
383
+ "name": "string"
384
+ },
385
+ "isOptional": true
386
+ },
387
+ {
388
+ "__schema": "VariableLikeSchema",
389
+ "location": {
390
+ "filePath": "schema-extractor.ts",
391
+ "line": 23,
392
+ "character": 3
393
+ },
394
+ "signature": "(property) skipInternals?: boolean | undefined",
395
+ "name": "skipInternals",
396
+ "type": {
397
+ "__schema": "KeywordTypeSchema",
398
+ "location": {
399
+ "filePath": "schema-extractor.ts",
400
+ "line": 23,
401
+ "character": 19
402
+ },
403
+ "name": "boolean"
404
+ },
405
+ "isOptional": true
406
+ }
407
+ ]
408
+ }
68
409
  }
69
410
  },
70
411
  {
@@ -76,13 +417,272 @@
76
417
  },
77
418
  "name": "SchemaTask",
78
419
  "exportNode": {
79
- "__schema": "TypeRefSchema",
420
+ "__schema": "ClassSchema",
80
421
  "location": {
81
- "filePath": "index.ts",
82
- "line": 7,
83
- "character": 3
422
+ "filePath": "schema.task.ts",
423
+ "line": 22,
424
+ "character": 1
425
+ },
426
+ "doc": {
427
+ "__schema": "DocSchema",
428
+ "location": {
429
+ "filePath": "schema.task.ts",
430
+ "line": 19,
431
+ "character": 1
432
+ },
433
+ "raw": "/**\n * extract and persist the component schema as a json file\n */",
434
+ "comment": "extract and persist the component schema as a json file"
84
435
  },
85
- "name": "SchemaTask"
436
+ "signature": "class SchemaTask",
437
+ "name": "SchemaTask",
438
+ "members": [
439
+ {
440
+ "__schema": "VariableLikeSchema",
441
+ "location": {
442
+ "filePath": "schema.task.ts",
443
+ "line": 23,
444
+ "character": 3
445
+ },
446
+ "signature": "(property) SchemaTask.name: \"ExtractSchema\"",
447
+ "name": "name",
448
+ "type": {
449
+ "__schema": "InferenceTypeSchema",
450
+ "location": {
451
+ "filePath": "schema.task.ts",
452
+ "line": 23,
453
+ "character": 3
454
+ },
455
+ "type": "\"ExtractSchema\""
456
+ },
457
+ "isOptional": true,
458
+ "defaultValue": "SCHEMA_TASK_NAME"
459
+ },
460
+ {
461
+ "__schema": "VariableLikeSchema",
462
+ "location": {
463
+ "filePath": "schema.task.ts",
464
+ "line": 24,
465
+ "character": 3
466
+ },
467
+ "signature": "(property) SchemaTask.location: TaskLocation",
468
+ "name": "location",
469
+ "type": {
470
+ "__schema": "TypeRefSchema",
471
+ "location": {
472
+ "filePath": "schema.task.ts",
473
+ "line": 24,
474
+ "character": 3
475
+ },
476
+ "name": "TaskLocation",
477
+ "componentId": {
478
+ "scope": "teambit.pipelines",
479
+ "name": "builder"
480
+ }
481
+ },
482
+ "isOptional": true,
483
+ "defaultValue": "'end'"
484
+ },
485
+ {
486
+ "__schema": "VariableLikeSchema",
487
+ "location": {
488
+ "filePath": "schema.task.ts",
489
+ "line": 25,
490
+ "character": 3
491
+ },
492
+ "signature": "(property) SchemaTask.description: \"extract api schema for a set of components\"",
493
+ "name": "description",
494
+ "type": {
495
+ "__schema": "InferenceTypeSchema",
496
+ "location": {
497
+ "filePath": "schema.task.ts",
498
+ "line": 25,
499
+ "character": 3
500
+ },
501
+ "type": "\"extract api schema for a set of components\""
502
+ },
503
+ "isOptional": true,
504
+ "defaultValue": "'extract api schema for a set of components'"
505
+ },
506
+ {
507
+ "__schema": "ConstructorSchema",
508
+ "location": {
509
+ "filePath": "schema.task.ts",
510
+ "line": 27,
511
+ "character": 3
512
+ },
513
+ "signature": "constructor SchemaTask(aspectId: string, schema: SchemaMain, logger: Logger): SchemaTask",
514
+ "name": "constructor",
515
+ "params": [
516
+ {
517
+ "__schema": "ParameterSchema",
518
+ "location": {
519
+ "filePath": "schema.task.ts",
520
+ "line": 27,
521
+ "character": 15
522
+ },
523
+ "name": "aspectId",
524
+ "type": {
525
+ "__schema": "KeywordTypeSchema",
526
+ "location": {
527
+ "filePath": "schema.task.ts",
528
+ "line": 27,
529
+ "character": 34
530
+ },
531
+ "name": "string"
532
+ },
533
+ "isOptional": false,
534
+ "isSpread": false
535
+ },
536
+ {
537
+ "__schema": "ParameterSchema",
538
+ "location": {
539
+ "filePath": "schema.task.ts",
540
+ "line": 27,
541
+ "character": 42
542
+ },
543
+ "name": "schema",
544
+ "type": {
545
+ "__schema": "TypeRefSchema",
546
+ "location": {
547
+ "filePath": "schema.task.ts",
548
+ "line": 27,
549
+ "character": 58
550
+ },
551
+ "name": "SchemaMain"
552
+ },
553
+ "isOptional": false,
554
+ "isSpread": false
555
+ },
556
+ {
557
+ "__schema": "ParameterSchema",
558
+ "location": {
559
+ "filePath": "schema.task.ts",
560
+ "line": 27,
561
+ "character": 70
562
+ },
563
+ "name": "logger",
564
+ "type": {
565
+ "__schema": "TypeRefSchema",
566
+ "location": {
567
+ "filePath": "schema.task.ts",
568
+ "line": 27,
569
+ "character": 86
570
+ },
571
+ "name": "Logger",
572
+ "componentId": {
573
+ "scope": "teambit.harmony",
574
+ "name": "logger"
575
+ }
576
+ },
577
+ "isOptional": false,
578
+ "isSpread": false
579
+ }
580
+ ],
581
+ "returnType": {
582
+ "__schema": "ThisTypeSchema",
583
+ "location": {
584
+ "filePath": "schema.task.ts",
585
+ "line": 22,
586
+ "character": 1
587
+ },
588
+ "name": "SchemaTask"
589
+ },
590
+ "modifiers": []
591
+ },
592
+ {
593
+ "__schema": "FunctionLikeSchema",
594
+ "location": {
595
+ "filePath": "schema.task.ts",
596
+ "line": 29,
597
+ "character": 3
598
+ },
599
+ "signature": "(method) SchemaTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
600
+ "name": "execute",
601
+ "params": [
602
+ {
603
+ "__schema": "ParameterSchema",
604
+ "location": {
605
+ "filePath": "schema.task.ts",
606
+ "line": 29,
607
+ "character": 17
608
+ },
609
+ "name": "context",
610
+ "type": {
611
+ "__schema": "TypeRefSchema",
612
+ "location": {
613
+ "filePath": "schema.task.ts",
614
+ "line": 29,
615
+ "character": 26
616
+ },
617
+ "name": "BuildContext",
618
+ "componentId": {
619
+ "scope": "teambit.pipelines",
620
+ "name": "builder"
621
+ }
622
+ },
623
+ "isOptional": false,
624
+ "isSpread": false
625
+ }
626
+ ],
627
+ "returnType": {
628
+ "__schema": "TypeRefSchema",
629
+ "location": {
630
+ "filePath": "schema.task.ts",
631
+ "line": 29,
632
+ "character": 41
633
+ },
634
+ "name": "Promise",
635
+ "typeArgs": [
636
+ {
637
+ "__schema": "TypeRefSchema",
638
+ "location": {
639
+ "filePath": "schema.task.ts",
640
+ "line": 29,
641
+ "character": 49
642
+ },
643
+ "name": "BuiltTaskResult",
644
+ "componentId": {
645
+ "scope": "teambit.pipelines",
646
+ "name": "builder"
647
+ }
648
+ }
649
+ ]
650
+ },
651
+ "modifiers": [
652
+ "async"
653
+ ]
654
+ }
655
+ ],
656
+ "extendsNodes": [],
657
+ "implementNodes": [
658
+ {
659
+ "__schema": "ExpressionWithTypeArgumentsSchema",
660
+ "location": {
661
+ "filePath": "schema.task.ts",
662
+ "line": 22,
663
+ "character": 36
664
+ },
665
+ "name": "implements BuildTask",
666
+ "typeArgs": [],
667
+ "expression": {
668
+ "__schema": "TypeRefSchema",
669
+ "location": {
670
+ "filePath": "schema.task.ts",
671
+ "line": 22,
672
+ "character": 36
673
+ },
674
+ "name": "BuildTask",
675
+ "componentId": {
676
+ "_legacy": {
677
+ "scope": "teambit.semantics",
678
+ "name": "schema",
679
+ "version": "1.0.259"
680
+ },
681
+ "_scope": "teambit.semantics"
682
+ }
683
+ }
684
+ }
685
+ ]
86
686
  }
87
687
  },
88
688
  {
@@ -94,13 +694,25 @@
94
694
  },
95
695
  "name": "SCHEMA_ARTIFACT_NAME",
96
696
  "exportNode": {
97
- "__schema": "TypeRefSchema",
697
+ "__schema": "VariableLikeSchema",
98
698
  "location": {
99
- "filePath": "index.ts",
100
- "line": 8,
101
- "character": 3
699
+ "filePath": "schema.task.ts",
700
+ "line": 17,
701
+ "character": 14
702
+ },
703
+ "signature": "const SCHEMA_ARTIFACT_NAME: \"schema\"",
704
+ "name": "SCHEMA_ARTIFACT_NAME",
705
+ "type": {
706
+ "__schema": "InferenceTypeSchema",
707
+ "location": {
708
+ "filePath": "schema.task.ts",
709
+ "line": 17,
710
+ "character": 14
711
+ },
712
+ "type": "\"schema\""
102
713
  },
103
- "name": "SCHEMA_ARTIFACT_NAME"
714
+ "isOptional": false,
715
+ "defaultValue": "'schema'"
104
716
  }
105
717
  },
106
718
  {
@@ -112,13 +724,25 @@
112
724
  },
113
725
  "name": "SCHEMA_TASK_NAME",
114
726
  "exportNode": {
115
- "__schema": "TypeRefSchema",
727
+ "__schema": "VariableLikeSchema",
116
728
  "location": {
117
- "filePath": "index.ts",
118
- "line": 9,
119
- "character": 3
729
+ "filePath": "schema.task.ts",
730
+ "line": 16,
731
+ "character": 14
120
732
  },
121
- "name": "SCHEMA_TASK_NAME"
733
+ "signature": "const SCHEMA_TASK_NAME: \"ExtractSchema\"",
734
+ "name": "SCHEMA_TASK_NAME",
735
+ "type": {
736
+ "__schema": "InferenceTypeSchema",
737
+ "location": {
738
+ "filePath": "schema.task.ts",
739
+ "line": 16,
740
+ "character": 14
741
+ },
742
+ "type": "\"ExtractSchema\""
743
+ },
744
+ "isOptional": false,
745
+ "defaultValue": "'ExtractSchema'"
122
746
  }
123
747
  },
124
748
  {
@@ -130,13 +754,31 @@
130
754
  },
131
755
  "name": "getSchemaArtifactDef",
132
756
  "exportNode": {
133
- "__schema": "TypeRefSchema",
757
+ "__schema": "FunctionLikeSchema",
134
758
  "location": {
135
- "filePath": "index.ts",
136
- "line": 10,
137
- "character": 3
759
+ "filePath": "schema.task.ts",
760
+ "line": 73,
761
+ "character": 1
762
+ },
763
+ "signature": "function getSchemaArtifactDef(): ArtifactDefinition",
764
+ "name": "getSchemaArtifactDef",
765
+ "params": [],
766
+ "returnType": {
767
+ "__schema": "TypeRefSchema",
768
+ "location": {
769
+ "filePath": "schema.task.ts",
770
+ "line": 73,
771
+ "character": 1
772
+ },
773
+ "name": "ArtifactDefinition",
774
+ "componentId": {
775
+ "scope": "teambit.pipelines",
776
+ "name": "builder"
777
+ }
138
778
  },
139
- "name": "getSchemaArtifactDef"
779
+ "modifiers": [
780
+ "export"
781
+ ]
140
782
  }
141
783
  },
142
784
  {
@@ -148,13 +790,27 @@
148
790
  },
149
791
  "name": "getSchemaArtifactPath",
150
792
  "exportNode": {
151
- "__schema": "TypeRefSchema",
793
+ "__schema": "FunctionLikeSchema",
152
794
  "location": {
153
- "filePath": "index.ts",
154
- "line": 11,
155
- "character": 3
795
+ "filePath": "schema.task.ts",
796
+ "line": 69,
797
+ "character": 1
798
+ },
799
+ "signature": "function getSchemaArtifactPath(): string",
800
+ "name": "getSchemaArtifactPath",
801
+ "params": [],
802
+ "returnType": {
803
+ "__schema": "InferenceTypeSchema",
804
+ "location": {
805
+ "filePath": "schema.task.ts",
806
+ "line": 69,
807
+ "character": 1
808
+ },
809
+ "type": "string"
156
810
  },
157
- "name": "getSchemaArtifactPath"
811
+ "modifiers": [
812
+ "export"
813
+ ]
158
814
  }
159
815
  },
160
816
  {
@@ -166,13 +822,63 @@
166
822
  },
167
823
  "name": "SchemaEnv",
168
824
  "exportNode": {
169
- "__schema": "TypeRefSchema",
825
+ "__schema": "InterfaceSchema",
170
826
  "location": {
171
- "filePath": "index.ts",
172
- "line": 13,
173
- "character": 15
827
+ "filePath": "schema-env.ts",
828
+ "line": 8,
829
+ "character": 1
830
+ },
831
+ "doc": {
832
+ "__schema": "DocSchema",
833
+ "location": {
834
+ "filePath": "schema-env.ts",
835
+ "line": 4,
836
+ "character": 1
837
+ },
838
+ "raw": "/**\n * define a schema extractor to extract type information\n * and docs for your components.\n */",
839
+ "comment": "define a schema extractor to extract type information\nand docs for your components."
174
840
  },
175
- "name": "SchemaEnv"
841
+ "signature": "interface SchemaEnv",
842
+ "name": "SchemaEnv",
843
+ "members": [
844
+ {
845
+ "__schema": "FunctionLikeSchema",
846
+ "location": {
847
+ "filePath": "schema-env.ts",
848
+ "line": 9,
849
+ "character": 3
850
+ },
851
+ "signature": "(method) SchemaEnv.schemaExtractor(): EnvHandler<SchemaExtractor>",
852
+ "name": "schemaExtractor",
853
+ "params": [],
854
+ "returnType": {
855
+ "__schema": "TypeRefSchema",
856
+ "location": {
857
+ "filePath": "schema-env.ts",
858
+ "line": 9,
859
+ "character": 22
860
+ },
861
+ "name": "EnvHandler",
862
+ "componentId": {
863
+ "scope": "teambit.envs",
864
+ "name": "envs"
865
+ },
866
+ "typeArgs": [
867
+ {
868
+ "__schema": "TypeRefSchema",
869
+ "location": {
870
+ "filePath": "schema-env.ts",
871
+ "line": 9,
872
+ "character": 33
873
+ },
874
+ "name": "SchemaExtractor"
875
+ }
876
+ ]
877
+ },
878
+ "modifiers": []
879
+ }
880
+ ],
881
+ "extendsNodes": []
176
882
  }
177
883
  },
178
884
  {
@@ -184,13 +890,1253 @@
184
890
  },
185
891
  "name": "SchemaMain",
186
892
  "exportNode": {
187
- "__schema": "TypeRefSchema",
893
+ "__schema": "ClassSchema",
188
894
  "location": {
189
- "filePath": "index.ts",
190
- "line": 14,
191
- "character": 15
895
+ "filePath": "schema.main.runtime.ts",
896
+ "line": 44,
897
+ "character": 1
192
898
  },
193
- "name": "SchemaMain"
899
+ "doc": {
900
+ "__schema": "DocSchema",
901
+ "location": {
902
+ "filePath": "schema.main.runtime.ts",
903
+ "line": 41,
904
+ "character": 1
905
+ },
906
+ "raw": "/**\n * extension for extracting component schemas.\n */",
907
+ "comment": "extension for extracting component schemas."
908
+ },
909
+ "signature": "class SchemaMain",
910
+ "name": "SchemaMain",
911
+ "members": [
912
+ {
913
+ "__schema": "ConstructorSchema",
914
+ "location": {
915
+ "filePath": "schema.main.runtime.ts",
916
+ "line": 45,
917
+ "character": 3
918
+ },
919
+ "signature": "constructor SchemaMain(parserSlot: ParserSlot, envs: EnvsMain, config: SchemaConfig, builder: BuilderMain, workspace: Workspace, logger: Logger): SchemaMain",
920
+ "name": "constructor",
921
+ "params": [
922
+ {
923
+ "__schema": "ParameterSchema",
924
+ "location": {
925
+ "filePath": "schema.main.runtime.ts",
926
+ "line": 49,
927
+ "character": 5
928
+ },
929
+ "name": "parserSlot",
930
+ "type": {
931
+ "__schema": "TypeRefSchema",
932
+ "location": {
933
+ "filePath": "schema.main.runtime.ts",
934
+ "line": 49,
935
+ "character": 25
936
+ },
937
+ "name": "ParserSlot",
938
+ "internalFilePath": "schema.main.runtime.ts"
939
+ },
940
+ "isOptional": false,
941
+ "isSpread": false
942
+ },
943
+ {
944
+ "__schema": "ParameterSchema",
945
+ "location": {
946
+ "filePath": "schema.main.runtime.ts",
947
+ "line": 51,
948
+ "character": 5
949
+ },
950
+ "name": "envs",
951
+ "type": {
952
+ "__schema": "TypeRefSchema",
953
+ "location": {
954
+ "filePath": "schema.main.runtime.ts",
955
+ "line": 51,
956
+ "character": 19
957
+ },
958
+ "name": "EnvsMain",
959
+ "componentId": {
960
+ "scope": "teambit.envs",
961
+ "name": "envs"
962
+ }
963
+ },
964
+ "isOptional": false,
965
+ "isSpread": false
966
+ },
967
+ {
968
+ "__schema": "ParameterSchema",
969
+ "location": {
970
+ "filePath": "schema.main.runtime.ts",
971
+ "line": 53,
972
+ "character": 5
973
+ },
974
+ "name": "config",
975
+ "type": {
976
+ "__schema": "TypeRefSchema",
977
+ "location": {
978
+ "filePath": "schema.main.runtime.ts",
979
+ "line": 53,
980
+ "character": 21
981
+ },
982
+ "name": "SchemaConfig",
983
+ "internalFilePath": "schema.main.runtime.ts"
984
+ },
985
+ "isOptional": false,
986
+ "isSpread": false
987
+ },
988
+ {
989
+ "__schema": "ParameterSchema",
990
+ "location": {
991
+ "filePath": "schema.main.runtime.ts",
992
+ "line": 55,
993
+ "character": 5
994
+ },
995
+ "name": "builder",
996
+ "type": {
997
+ "__schema": "TypeRefSchema",
998
+ "location": {
999
+ "filePath": "schema.main.runtime.ts",
1000
+ "line": 55,
1001
+ "character": 22
1002
+ },
1003
+ "name": "BuilderMain",
1004
+ "componentId": {
1005
+ "scope": "teambit.pipelines",
1006
+ "name": "builder"
1007
+ }
1008
+ },
1009
+ "isOptional": false,
1010
+ "isSpread": false
1011
+ },
1012
+ {
1013
+ "__schema": "ParameterSchema",
1014
+ "location": {
1015
+ "filePath": "schema.main.runtime.ts",
1016
+ "line": 57,
1017
+ "character": 5
1018
+ },
1019
+ "name": "workspace",
1020
+ "type": {
1021
+ "__schema": "TypeRefSchema",
1022
+ "location": {
1023
+ "filePath": "schema.main.runtime.ts",
1024
+ "line": 57,
1025
+ "character": 24
1026
+ },
1027
+ "name": "Workspace",
1028
+ "componentId": {
1029
+ "scope": "teambit.workspace",
1030
+ "name": "workspace"
1031
+ }
1032
+ },
1033
+ "isOptional": false,
1034
+ "isSpread": false
1035
+ },
1036
+ {
1037
+ "__schema": "ParameterSchema",
1038
+ "location": {
1039
+ "filePath": "schema.main.runtime.ts",
1040
+ "line": 59,
1041
+ "character": 5
1042
+ },
1043
+ "name": "logger",
1044
+ "type": {
1045
+ "__schema": "TypeRefSchema",
1046
+ "location": {
1047
+ "filePath": "schema.main.runtime.ts",
1048
+ "line": 59,
1049
+ "character": 21
1050
+ },
1051
+ "name": "Logger",
1052
+ "componentId": {
1053
+ "scope": "teambit.harmony",
1054
+ "name": "logger"
1055
+ }
1056
+ },
1057
+ "isOptional": false,
1058
+ "isSpread": false
1059
+ }
1060
+ ],
1061
+ "returnType": {
1062
+ "__schema": "ThisTypeSchema",
1063
+ "location": {
1064
+ "filePath": "schema.main.runtime.ts",
1065
+ "line": 44,
1066
+ "character": 1
1067
+ },
1068
+ "name": "SchemaMain"
1069
+ },
1070
+ "modifiers": []
1071
+ },
1072
+ {
1073
+ "__schema": "FunctionLikeSchema",
1074
+ "location": {
1075
+ "filePath": "schema.main.runtime.ts",
1076
+ "line": 65,
1077
+ "character": 3
1078
+ },
1079
+ "doc": {
1080
+ "__schema": "DocSchema",
1081
+ "location": {
1082
+ "filePath": "schema.main.runtime.ts",
1083
+ "line": 62,
1084
+ "character": 3
1085
+ },
1086
+ "raw": "/**\n * get the default parser.\n */",
1087
+ "comment": "get the default parser."
1088
+ },
1089
+ "signature": "(method) SchemaMain.getDefaultParser(): Parser",
1090
+ "name": "getDefaultParser",
1091
+ "params": [],
1092
+ "returnType": {
1093
+ "__schema": "TypeRefSchema",
1094
+ "location": {
1095
+ "filePath": "schema.main.runtime.ts",
1096
+ "line": 65,
1097
+ "character": 3
1098
+ },
1099
+ "name": "Parser"
1100
+ },
1101
+ "modifiers": []
1102
+ },
1103
+ {
1104
+ "__schema": "FunctionLikeSchema",
1105
+ "location": {
1106
+ "filePath": "schema.main.runtime.ts",
1107
+ "line": 69,
1108
+ "character": 3
1109
+ },
1110
+ "signature": "(method) SchemaMain.registerSchemaClass(schema: SchemaNodeConstructor): void",
1111
+ "name": "registerSchemaClass",
1112
+ "params": [
1113
+ {
1114
+ "__schema": "ParameterSchema",
1115
+ "location": {
1116
+ "filePath": "schema.main.runtime.ts",
1117
+ "line": 69,
1118
+ "character": 23
1119
+ },
1120
+ "name": "schema",
1121
+ "type": {
1122
+ "__schema": "TypeRefSchema",
1123
+ "location": {
1124
+ "filePath": "schema.main.runtime.ts",
1125
+ "line": 69,
1126
+ "character": 31
1127
+ },
1128
+ "name": "SchemaNodeConstructor",
1129
+ "componentId": {
1130
+ "scope": "teambit.semantics",
1131
+ "name": "entities/semantic-schema",
1132
+ "version": "0.0.69"
1133
+ }
1134
+ },
1135
+ "isOptional": false,
1136
+ "isSpread": false
1137
+ }
1138
+ ],
1139
+ "returnType": {
1140
+ "__schema": "InferenceTypeSchema",
1141
+ "location": {
1142
+ "filePath": "schema.main.runtime.ts",
1143
+ "line": 69,
1144
+ "character": 3
1145
+ },
1146
+ "type": "void"
1147
+ },
1148
+ "modifiers": []
1149
+ },
1150
+ {
1151
+ "__schema": "FunctionLikeSchema",
1152
+ "location": {
1153
+ "filePath": "schema.main.runtime.ts",
1154
+ "line": 76,
1155
+ "character": 3
1156
+ },
1157
+ "doc": {
1158
+ "__schema": "DocSchema",
1159
+ "location": {
1160
+ "filePath": "schema.main.runtime.ts",
1161
+ "line": 73,
1162
+ "character": 3
1163
+ },
1164
+ "raw": "/**\n * parse a module into a component schema.\n */",
1165
+ "comment": "parse a module into a component schema."
1166
+ },
1167
+ "signature": "(method) SchemaMain.parseModule(path: string, content?: string): Export[]",
1168
+ "name": "parseModule",
1169
+ "params": [
1170
+ {
1171
+ "__schema": "ParameterSchema",
1172
+ "location": {
1173
+ "filePath": "schema.main.runtime.ts",
1174
+ "line": 76,
1175
+ "character": 15
1176
+ },
1177
+ "name": "path",
1178
+ "type": {
1179
+ "__schema": "KeywordTypeSchema",
1180
+ "location": {
1181
+ "filePath": "schema.main.runtime.ts",
1182
+ "line": 76,
1183
+ "character": 21
1184
+ },
1185
+ "name": "string"
1186
+ },
1187
+ "isOptional": false,
1188
+ "isSpread": false
1189
+ },
1190
+ {
1191
+ "__schema": "ParameterSchema",
1192
+ "location": {
1193
+ "filePath": "schema.main.runtime.ts",
1194
+ "line": 76,
1195
+ "character": 29
1196
+ },
1197
+ "name": "content",
1198
+ "type": {
1199
+ "__schema": "KeywordTypeSchema",
1200
+ "location": {
1201
+ "filePath": "schema.main.runtime.ts",
1202
+ "line": 76,
1203
+ "character": 39
1204
+ },
1205
+ "name": "string"
1206
+ },
1207
+ "isOptional": true,
1208
+ "isSpread": false
1209
+ }
1210
+ ],
1211
+ "returnType": {
1212
+ "__schema": "TypeArraySchema",
1213
+ "location": {
1214
+ "filePath": "schema.main.runtime.ts",
1215
+ "line": 76,
1216
+ "character": 48
1217
+ },
1218
+ "type": {
1219
+ "__schema": "TypeRefSchema",
1220
+ "location": {
1221
+ "filePath": "schema.main.runtime.ts",
1222
+ "line": 76,
1223
+ "character": 48
1224
+ },
1225
+ "name": "Export",
1226
+ "componentId": {
1227
+ "scope": "teambit.semantics",
1228
+ "name": "entities/semantic-schema",
1229
+ "version": "0.0.69"
1230
+ }
1231
+ }
1232
+ },
1233
+ "modifiers": []
1234
+ },
1235
+ {
1236
+ "__schema": "FunctionLikeSchema",
1237
+ "location": {
1238
+ "filePath": "schema.main.runtime.ts",
1239
+ "line": 91,
1240
+ "character": 3
1241
+ },
1242
+ "signature": "(method) SchemaMain.getSchemaExtractor(component: Component, tsserverPath?: string, contextPath?: string): SchemaExtractor",
1243
+ "name": "getSchemaExtractor",
1244
+ "params": [
1245
+ {
1246
+ "__schema": "ParameterSchema",
1247
+ "location": {
1248
+ "filePath": "schema.main.runtime.ts",
1249
+ "line": 91,
1250
+ "character": 22
1251
+ },
1252
+ "name": "component",
1253
+ "type": {
1254
+ "__schema": "TypeRefSchema",
1255
+ "location": {
1256
+ "filePath": "schema.main.runtime.ts",
1257
+ "line": 91,
1258
+ "character": 33
1259
+ },
1260
+ "name": "Component",
1261
+ "componentId": {
1262
+ "scope": "teambit.component",
1263
+ "name": "component"
1264
+ }
1265
+ },
1266
+ "isOptional": false,
1267
+ "isSpread": false
1268
+ },
1269
+ {
1270
+ "__schema": "ParameterSchema",
1271
+ "location": {
1272
+ "filePath": "schema.main.runtime.ts",
1273
+ "line": 91,
1274
+ "character": 44
1275
+ },
1276
+ "name": "tsserverPath",
1277
+ "type": {
1278
+ "__schema": "KeywordTypeSchema",
1279
+ "location": {
1280
+ "filePath": "schema.main.runtime.ts",
1281
+ "line": 91,
1282
+ "character": 59
1283
+ },
1284
+ "name": "string"
1285
+ },
1286
+ "isOptional": true,
1287
+ "isSpread": false
1288
+ },
1289
+ {
1290
+ "__schema": "ParameterSchema",
1291
+ "location": {
1292
+ "filePath": "schema.main.runtime.ts",
1293
+ "line": 91,
1294
+ "character": 67
1295
+ },
1296
+ "name": "contextPath",
1297
+ "type": {
1298
+ "__schema": "KeywordTypeSchema",
1299
+ "location": {
1300
+ "filePath": "schema.main.runtime.ts",
1301
+ "line": 91,
1302
+ "character": 81
1303
+ },
1304
+ "name": "string"
1305
+ },
1306
+ "isOptional": true,
1307
+ "isSpread": false
1308
+ }
1309
+ ],
1310
+ "returnType": {
1311
+ "__schema": "TypeRefSchema",
1312
+ "location": {
1313
+ "filePath": "schema.main.runtime.ts",
1314
+ "line": 91,
1315
+ "character": 3
1316
+ },
1317
+ "name": "SchemaExtractor"
1318
+ },
1319
+ "modifiers": []
1320
+ },
1321
+ {
1322
+ "__schema": "FunctionLikeSchema",
1323
+ "location": {
1324
+ "filePath": "schema.main.runtime.ts",
1325
+ "line": 108,
1326
+ "character": 3
1327
+ },
1328
+ "doc": {
1329
+ "__schema": "DocSchema",
1330
+ "location": {
1331
+ "filePath": "schema.main.runtime.ts",
1332
+ "line": 100,
1333
+ "character": 3
1334
+ },
1335
+ "raw": "/**\n * get a schema of a component.\n * @param component target component.\n * @param shouldDisposeResourcesOnceDone for long-running processes, such as bit-start/bit-watch, this is not\n * relevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\n * not kept alive. otherwise, the process will never end.\n *\n */",
1336
+ "comment": "get a schema of a component.",
1337
+ "tags": [
1338
+ {
1339
+ "__schema": "PropertyLikeTagSchema",
1340
+ "location": {
1341
+ "filePath": "schema.main.runtime.ts",
1342
+ "line": 102,
1343
+ "character": 6
1344
+ },
1345
+ "name": "component",
1346
+ "tagName": "parameter",
1347
+ "comment": "target component."
1348
+ },
1349
+ {
1350
+ "__schema": "PropertyLikeTagSchema",
1351
+ "location": {
1352
+ "filePath": "schema.main.runtime.ts",
1353
+ "line": 103,
1354
+ "character": 6
1355
+ },
1356
+ "name": "shouldDisposeResourcesOnceDone",
1357
+ "tagName": "parameter",
1358
+ "comment": "for long-running processes, such as bit-start/bit-watch, this is not\nrelevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\nnot kept alive. otherwise, the process will never end."
1359
+ }
1360
+ ]
1361
+ },
1362
+ "signature": "(method) SchemaMain.getSchema(component: Component, shouldDisposeResourcesOnceDone?: boolean, alwaysRunExtractor?: boolean, tsserverPath?: string, contextPath?: string, skipInternals?: boolean, schemaTransformers?: SchemaTransformer[], apiTransformers?: SchemaNodeTransformer[]): Promise<APISchema>",
1363
+ "name": "getSchema",
1364
+ "params": [
1365
+ {
1366
+ "__schema": "ParameterSchema",
1367
+ "location": {
1368
+ "filePath": "schema.main.runtime.ts",
1369
+ "line": 109,
1370
+ "character": 5
1371
+ },
1372
+ "name": "component",
1373
+ "type": {
1374
+ "__schema": "TypeRefSchema",
1375
+ "location": {
1376
+ "filePath": "schema.main.runtime.ts",
1377
+ "line": 109,
1378
+ "character": 16
1379
+ },
1380
+ "name": "Component",
1381
+ "componentId": {
1382
+ "scope": "teambit.component",
1383
+ "name": "component"
1384
+ }
1385
+ },
1386
+ "isOptional": false,
1387
+ "isSpread": false
1388
+ },
1389
+ {
1390
+ "__schema": "ParameterSchema",
1391
+ "location": {
1392
+ "filePath": "schema.main.runtime.ts",
1393
+ "line": 110,
1394
+ "character": 5
1395
+ },
1396
+ "name": "shouldDisposeResourcesOnceDone",
1397
+ "type": {
1398
+ "__schema": "InferenceTypeSchema",
1399
+ "location": {
1400
+ "filePath": "schema.main.runtime.ts",
1401
+ "line": 110,
1402
+ "character": 5
1403
+ },
1404
+ "type": "boolean"
1405
+ },
1406
+ "isOptional": true,
1407
+ "defaultValue": "false",
1408
+ "isSpread": false
1409
+ },
1410
+ {
1411
+ "__schema": "ParameterSchema",
1412
+ "location": {
1413
+ "filePath": "schema.main.runtime.ts",
1414
+ "line": 111,
1415
+ "character": 5
1416
+ },
1417
+ "name": "alwaysRunExtractor",
1418
+ "type": {
1419
+ "__schema": "InferenceTypeSchema",
1420
+ "location": {
1421
+ "filePath": "schema.main.runtime.ts",
1422
+ "line": 111,
1423
+ "character": 5
1424
+ },
1425
+ "type": "boolean"
1426
+ },
1427
+ "isOptional": true,
1428
+ "defaultValue": "false",
1429
+ "isSpread": false
1430
+ },
1431
+ {
1432
+ "__schema": "ParameterSchema",
1433
+ "location": {
1434
+ "filePath": "schema.main.runtime.ts",
1435
+ "line": 112,
1436
+ "character": 5
1437
+ },
1438
+ "name": "tsserverPath",
1439
+ "type": {
1440
+ "__schema": "KeywordTypeSchema",
1441
+ "location": {
1442
+ "filePath": "schema.main.runtime.ts",
1443
+ "line": 112,
1444
+ "character": 20
1445
+ },
1446
+ "name": "string"
1447
+ },
1448
+ "isOptional": true,
1449
+ "isSpread": false
1450
+ },
1451
+ {
1452
+ "__schema": "ParameterSchema",
1453
+ "location": {
1454
+ "filePath": "schema.main.runtime.ts",
1455
+ "line": 113,
1456
+ "character": 5
1457
+ },
1458
+ "name": "contextPath",
1459
+ "type": {
1460
+ "__schema": "KeywordTypeSchema",
1461
+ "location": {
1462
+ "filePath": "schema.main.runtime.ts",
1463
+ "line": 113,
1464
+ "character": 19
1465
+ },
1466
+ "name": "string"
1467
+ },
1468
+ "isOptional": true,
1469
+ "isSpread": false
1470
+ },
1471
+ {
1472
+ "__schema": "ParameterSchema",
1473
+ "location": {
1474
+ "filePath": "schema.main.runtime.ts",
1475
+ "line": 114,
1476
+ "character": 5
1477
+ },
1478
+ "name": "skipInternals",
1479
+ "type": {
1480
+ "__schema": "KeywordTypeSchema",
1481
+ "location": {
1482
+ "filePath": "schema.main.runtime.ts",
1483
+ "line": 114,
1484
+ "character": 21
1485
+ },
1486
+ "name": "boolean"
1487
+ },
1488
+ "isOptional": true,
1489
+ "isSpread": false
1490
+ },
1491
+ {
1492
+ "__schema": "ParameterSchema",
1493
+ "location": {
1494
+ "filePath": "schema.main.runtime.ts",
1495
+ "line": 115,
1496
+ "character": 5
1497
+ },
1498
+ "name": "schemaTransformers",
1499
+ "type": {
1500
+ "__schema": "TypeArraySchema",
1501
+ "location": {
1502
+ "filePath": "schema.main.runtime.ts",
1503
+ "line": 115,
1504
+ "character": 26
1505
+ },
1506
+ "type": {
1507
+ "__schema": "TypeRefSchema",
1508
+ "location": {
1509
+ "filePath": "schema.main.runtime.ts",
1510
+ "line": 115,
1511
+ "character": 26
1512
+ },
1513
+ "name": "SchemaTransformer",
1514
+ "componentId": {
1515
+ "scope": "teambit.typescript",
1516
+ "name": "typescript"
1517
+ }
1518
+ }
1519
+ },
1520
+ "isOptional": true,
1521
+ "isSpread": false
1522
+ },
1523
+ {
1524
+ "__schema": "ParameterSchema",
1525
+ "location": {
1526
+ "filePath": "schema.main.runtime.ts",
1527
+ "line": 116,
1528
+ "character": 5
1529
+ },
1530
+ "name": "apiTransformers",
1531
+ "type": {
1532
+ "__schema": "TypeArraySchema",
1533
+ "location": {
1534
+ "filePath": "schema.main.runtime.ts",
1535
+ "line": 116,
1536
+ "character": 23
1537
+ },
1538
+ "type": {
1539
+ "__schema": "TypeRefSchema",
1540
+ "location": {
1541
+ "filePath": "schema.main.runtime.ts",
1542
+ "line": 116,
1543
+ "character": 23
1544
+ },
1545
+ "name": "SchemaNodeTransformer",
1546
+ "componentId": {
1547
+ "scope": "teambit.typescript",
1548
+ "name": "typescript"
1549
+ }
1550
+ }
1551
+ },
1552
+ "isOptional": true,
1553
+ "isSpread": false
1554
+ }
1555
+ ],
1556
+ "returnType": {
1557
+ "__schema": "TypeRefSchema",
1558
+ "location": {
1559
+ "filePath": "schema.main.runtime.ts",
1560
+ "line": 117,
1561
+ "character": 6
1562
+ },
1563
+ "name": "Promise",
1564
+ "typeArgs": [
1565
+ {
1566
+ "__schema": "TypeRefSchema",
1567
+ "location": {
1568
+ "filePath": "schema.main.runtime.ts",
1569
+ "line": 117,
1570
+ "character": 14
1571
+ },
1572
+ "name": "APISchema",
1573
+ "componentId": {
1574
+ "scope": "teambit.semantics",
1575
+ "name": "entities/semantic-schema",
1576
+ "version": "0.0.69"
1577
+ }
1578
+ }
1579
+ ]
1580
+ },
1581
+ "modifiers": [
1582
+ "async"
1583
+ ]
1584
+ },
1585
+ {
1586
+ "__schema": "FunctionLikeSchema",
1587
+ "location": {
1588
+ "filePath": "schema.main.runtime.ts",
1589
+ "line": 180,
1590
+ "character": 3
1591
+ },
1592
+ "signature": "(method) SchemaMain.getSchemaFromObject(obj: Record<string, any>): APISchema",
1593
+ "name": "getSchemaFromObject",
1594
+ "params": [
1595
+ {
1596
+ "__schema": "ParameterSchema",
1597
+ "location": {
1598
+ "filePath": "schema.main.runtime.ts",
1599
+ "line": 180,
1600
+ "character": 23
1601
+ },
1602
+ "name": "obj",
1603
+ "type": {
1604
+ "__schema": "TypeRefSchema",
1605
+ "location": {
1606
+ "filePath": "schema.main.runtime.ts",
1607
+ "line": 180,
1608
+ "character": 28
1609
+ },
1610
+ "name": "Record",
1611
+ "typeArgs": [
1612
+ {
1613
+ "__schema": "KeywordTypeSchema",
1614
+ "location": {
1615
+ "filePath": "schema.main.runtime.ts",
1616
+ "line": 180,
1617
+ "character": 35
1618
+ },
1619
+ "name": "string"
1620
+ },
1621
+ {
1622
+ "__schema": "KeywordTypeSchema",
1623
+ "location": {
1624
+ "filePath": "schema.main.runtime.ts",
1625
+ "line": 180,
1626
+ "character": 43
1627
+ },
1628
+ "name": "any"
1629
+ }
1630
+ ]
1631
+ },
1632
+ "isOptional": false,
1633
+ "isSpread": false
1634
+ }
1635
+ ],
1636
+ "returnType": {
1637
+ "__schema": "TypeRefSchema",
1638
+ "location": {
1639
+ "filePath": "schema.main.runtime.ts",
1640
+ "line": 180,
1641
+ "character": 3
1642
+ },
1643
+ "name": "APISchema",
1644
+ "componentId": {
1645
+ "scope": "teambit.semantics",
1646
+ "name": "entities/semantic-schema",
1647
+ "version": "0.0.69"
1648
+ }
1649
+ },
1650
+ "modifiers": []
1651
+ },
1652
+ {
1653
+ "__schema": "FunctionLikeSchema",
1654
+ "location": {
1655
+ "filePath": "schema.main.runtime.ts",
1656
+ "line": 187,
1657
+ "character": 3
1658
+ },
1659
+ "doc": {
1660
+ "__schema": "DocSchema",
1661
+ "location": {
1662
+ "filePath": "schema.main.runtime.ts",
1663
+ "line": 184,
1664
+ "character": 3
1665
+ },
1666
+ "raw": "/**\n * register a new parser.\n */",
1667
+ "comment": "register a new parser."
1668
+ },
1669
+ "signature": "(method) SchemaMain.registerParser(parser: Parser): SchemaMain",
1670
+ "name": "registerParser",
1671
+ "params": [
1672
+ {
1673
+ "__schema": "ParameterSchema",
1674
+ "location": {
1675
+ "filePath": "schema.main.runtime.ts",
1676
+ "line": 187,
1677
+ "character": 18
1678
+ },
1679
+ "name": "parser",
1680
+ "type": {
1681
+ "__schema": "TypeRefSchema",
1682
+ "location": {
1683
+ "filePath": "schema.main.runtime.ts",
1684
+ "line": 187,
1685
+ "character": 26
1686
+ },
1687
+ "name": "Parser"
1688
+ },
1689
+ "isOptional": false,
1690
+ "isSpread": false
1691
+ }
1692
+ ],
1693
+ "returnType": {
1694
+ "__schema": "TypeRefSchema",
1695
+ "location": {
1696
+ "filePath": "schema.main.runtime.ts",
1697
+ "line": 187,
1698
+ "character": 3
1699
+ },
1700
+ "name": "SchemaMain"
1701
+ },
1702
+ "modifiers": []
1703
+ },
1704
+ {
1705
+ "__schema": "FunctionLikeSchema",
1706
+ "location": {
1707
+ "filePath": "schema.main.runtime.ts",
1708
+ "line": 192,
1709
+ "character": 3
1710
+ },
1711
+ "signature": "(method) SchemaMain.calcSchemaData(): Promise<{\n disabled?: boolean;\n}>",
1712
+ "name": "calcSchemaData",
1713
+ "params": [],
1714
+ "returnType": {
1715
+ "__schema": "TypeRefSchema",
1716
+ "location": {
1717
+ "filePath": "schema.main.runtime.ts",
1718
+ "line": 192,
1719
+ "character": 27
1720
+ },
1721
+ "name": "Promise",
1722
+ "typeArgs": [
1723
+ {
1724
+ "__schema": "TypeLiteralSchema",
1725
+ "location": {
1726
+ "filePath": "schema.main.runtime.ts",
1727
+ "line": 192,
1728
+ "character": 35
1729
+ },
1730
+ "members": [
1731
+ {
1732
+ "__schema": "VariableLikeSchema",
1733
+ "location": {
1734
+ "filePath": "schema.main.runtime.ts",
1735
+ "line": 192,
1736
+ "character": 37
1737
+ },
1738
+ "signature": "(property) disabled?: boolean | undefined",
1739
+ "name": "disabled",
1740
+ "type": {
1741
+ "__schema": "KeywordTypeSchema",
1742
+ "location": {
1743
+ "filePath": "schema.main.runtime.ts",
1744
+ "line": 192,
1745
+ "character": 48
1746
+ },
1747
+ "name": "boolean"
1748
+ },
1749
+ "isOptional": true
1750
+ }
1751
+ ]
1752
+ }
1753
+ ]
1754
+ },
1755
+ "modifiers": [
1756
+ "async"
1757
+ ]
1758
+ },
1759
+ {
1760
+ "__schema": "FunctionLikeSchema",
1761
+ "location": {
1762
+ "filePath": "schema.main.runtime.ts",
1763
+ "line": 198,
1764
+ "character": 3
1765
+ },
1766
+ "signature": "(method) SchemaMain.getSchemaData(component: Component): {\n [key: string]: any;\n} | undefined",
1767
+ "name": "getSchemaData",
1768
+ "params": [
1769
+ {
1770
+ "__schema": "ParameterSchema",
1771
+ "location": {
1772
+ "filePath": "schema.main.runtime.ts",
1773
+ "line": 198,
1774
+ "character": 17
1775
+ },
1776
+ "name": "component",
1777
+ "type": {
1778
+ "__schema": "TypeRefSchema",
1779
+ "location": {
1780
+ "filePath": "schema.main.runtime.ts",
1781
+ "line": 198,
1782
+ "character": 28
1783
+ },
1784
+ "name": "Component",
1785
+ "componentId": {
1786
+ "scope": "teambit.component",
1787
+ "name": "component"
1788
+ }
1789
+ },
1790
+ "isOptional": false,
1791
+ "isSpread": false
1792
+ }
1793
+ ],
1794
+ "returnType": {
1795
+ "__schema": "InferenceTypeSchema",
1796
+ "location": {
1797
+ "filePath": "schema.main.runtime.ts",
1798
+ "line": 198,
1799
+ "character": 3
1800
+ },
1801
+ "type": "{\n [key: string]: any;\n} | undefined"
1802
+ },
1803
+ "modifiers": []
1804
+ },
1805
+ {
1806
+ "__schema": "FunctionLikeSchema",
1807
+ "location": {
1808
+ "filePath": "schema.main.runtime.ts",
1809
+ "line": 202,
1810
+ "character": 3
1811
+ },
1812
+ "signature": "(method) SchemaMain.isSchemaTaskDisabled(component: Component): any",
1813
+ "name": "isSchemaTaskDisabled",
1814
+ "params": [
1815
+ {
1816
+ "__schema": "ParameterSchema",
1817
+ "location": {
1818
+ "filePath": "schema.main.runtime.ts",
1819
+ "line": 202,
1820
+ "character": 24
1821
+ },
1822
+ "name": "component",
1823
+ "type": {
1824
+ "__schema": "TypeRefSchema",
1825
+ "location": {
1826
+ "filePath": "schema.main.runtime.ts",
1827
+ "line": 202,
1828
+ "character": 35
1829
+ },
1830
+ "name": "Component",
1831
+ "componentId": {
1832
+ "scope": "teambit.component",
1833
+ "name": "component"
1834
+ }
1835
+ },
1836
+ "isOptional": false,
1837
+ "isSpread": false
1838
+ }
1839
+ ],
1840
+ "returnType": {
1841
+ "__schema": "InferenceTypeSchema",
1842
+ "location": {
1843
+ "filePath": "schema.main.runtime.ts",
1844
+ "line": 202,
1845
+ "character": 3
1846
+ },
1847
+ "type": "any"
1848
+ },
1849
+ "modifiers": []
1850
+ },
1851
+ {
1852
+ "__schema": "VariableLikeSchema",
1853
+ "location": {
1854
+ "filePath": "schema.main.runtime.ts",
1855
+ "line": 206,
1856
+ "character": 3
1857
+ },
1858
+ "signature": "(property) SchemaMain.runtime: RuntimeDefinition",
1859
+ "name": "runtime",
1860
+ "type": {
1861
+ "__schema": "InferenceTypeSchema",
1862
+ "location": {
1863
+ "filePath": "schema.main.runtime.ts",
1864
+ "line": 206,
1865
+ "character": 3
1866
+ },
1867
+ "type": "RuntimeDefinition"
1868
+ },
1869
+ "isOptional": true,
1870
+ "defaultValue": "MainRuntime"
1871
+ },
1872
+ {
1873
+ "__schema": "VariableLikeSchema",
1874
+ "location": {
1875
+ "filePath": "schema.main.runtime.ts",
1876
+ "line": 207,
1877
+ "character": 3
1878
+ },
1879
+ "signature": "(property) SchemaMain.dependencies: Aspect[]",
1880
+ "name": "dependencies",
1881
+ "type": {
1882
+ "__schema": "InferenceTypeSchema",
1883
+ "location": {
1884
+ "filePath": "schema.main.runtime.ts",
1885
+ "line": 207,
1886
+ "character": 3
1887
+ },
1888
+ "type": "Aspect[]"
1889
+ },
1890
+ "isOptional": true,
1891
+ "defaultValue": "[\n EnvsAspect,\n CLIAspect,\n ComponentAspect,\n GraphqlAspect,\n LoggerAspect,\n BuilderAspect,\n WorkspaceAspect,\n ScopeAspect,\n ]"
1892
+ },
1893
+ {
1894
+ "__schema": "VariableLikeSchema",
1895
+ "location": {
1896
+ "filePath": "schema.main.runtime.ts",
1897
+ "line": 217,
1898
+ "character": 3
1899
+ },
1900
+ "signature": "(property) SchemaMain.slots: ((registerFn: () => string) => SlotRegistry<Parser>)[]",
1901
+ "name": "slots",
1902
+ "type": {
1903
+ "__schema": "InferenceTypeSchema",
1904
+ "location": {
1905
+ "filePath": "schema.main.runtime.ts",
1906
+ "line": 217,
1907
+ "character": 3
1908
+ },
1909
+ "type": "((registerFn: () => string) => SlotRegistry<Parser>)[]"
1910
+ },
1911
+ "isOptional": true,
1912
+ "defaultValue": "[Slot.withType<Parser>()]"
1913
+ },
1914
+ {
1915
+ "__schema": "VariableLikeSchema",
1916
+ "location": {
1917
+ "filePath": "schema.main.runtime.ts",
1918
+ "line": 219,
1919
+ "character": 3
1920
+ },
1921
+ "signature": "(property) SchemaMain.defaultConfig: {\n defaultParser: string;\n disabled: boolean;\n}",
1922
+ "name": "defaultConfig",
1923
+ "type": {
1924
+ "__schema": "InferenceTypeSchema",
1925
+ "location": {
1926
+ "filePath": "schema.main.runtime.ts",
1927
+ "line": 219,
1928
+ "character": 3
1929
+ },
1930
+ "type": "{\n defaultParser: string;\n disabled: boolean;\n}"
1931
+ },
1932
+ "isOptional": true,
1933
+ "defaultValue": "{\n defaultParser: 'teambit.typescript/typescript',\n disabled: false,\n }"
1934
+ },
1935
+ {
1936
+ "__schema": "FunctionLikeSchema",
1937
+ "location": {
1938
+ "filePath": "schema.main.runtime.ts",
1939
+ "line": 224,
1940
+ "character": 3
1941
+ },
1942
+ "signature": "(method) SchemaMain.provider([envs, cli, component, graphql, loggerMain, builder, workspace, scope]: [\n EnvsMain,\n CLIMain,\n ComponentMain,\n GraphqlMain,\n LoggerMain,\n BuilderMain,\n Workspace,\n ScopeMain\n], config: SchemaConfig, [parserSlot]: [ParserSlot]): Promise<SchemaMain>",
1943
+ "name": "provider",
1944
+ "params": [
1945
+ {
1946
+ "__schema": "ParameterSchema",
1947
+ "location": {
1948
+ "filePath": "schema.main.runtime.ts",
1949
+ "line": 225,
1950
+ "character": 5
1951
+ },
1952
+ "name": "[ envs, cli, component, graphql, loggerMain, builder, workspace, scope ]",
1953
+ "type": {
1954
+ "__schema": "TupleTypeSchema",
1955
+ "location": {
1956
+ "filePath": "schema.main.runtime.ts",
1957
+ "line": 225,
1958
+ "character": 77
1959
+ },
1960
+ "elements": [
1961
+ {
1962
+ "__schema": "TypeRefSchema",
1963
+ "location": {
1964
+ "filePath": "schema.main.runtime.ts",
1965
+ "line": 226,
1966
+ "character": 7
1967
+ },
1968
+ "name": "EnvsMain",
1969
+ "componentId": {
1970
+ "scope": "teambit.envs",
1971
+ "name": "envs"
1972
+ }
1973
+ },
1974
+ {
1975
+ "__schema": "TypeRefSchema",
1976
+ "location": {
1977
+ "filePath": "schema.main.runtime.ts",
1978
+ "line": 227,
1979
+ "character": 7
1980
+ },
1981
+ "name": "CLIMain",
1982
+ "componentId": {
1983
+ "scope": "teambit.harmony",
1984
+ "name": "cli"
1985
+ }
1986
+ },
1987
+ {
1988
+ "__schema": "TypeRefSchema",
1989
+ "location": {
1990
+ "filePath": "schema.main.runtime.ts",
1991
+ "line": 228,
1992
+ "character": 7
1993
+ },
1994
+ "name": "ComponentMain",
1995
+ "componentId": {
1996
+ "scope": "teambit.component",
1997
+ "name": "component"
1998
+ }
1999
+ },
2000
+ {
2001
+ "__schema": "TypeRefSchema",
2002
+ "location": {
2003
+ "filePath": "schema.main.runtime.ts",
2004
+ "line": 229,
2005
+ "character": 7
2006
+ },
2007
+ "name": "GraphqlMain",
2008
+ "componentId": {
2009
+ "scope": "teambit.harmony",
2010
+ "name": "graphql"
2011
+ }
2012
+ },
2013
+ {
2014
+ "__schema": "TypeRefSchema",
2015
+ "location": {
2016
+ "filePath": "schema.main.runtime.ts",
2017
+ "line": 230,
2018
+ "character": 7
2019
+ },
2020
+ "name": "LoggerMain",
2021
+ "componentId": {
2022
+ "scope": "teambit.harmony",
2023
+ "name": "logger"
2024
+ }
2025
+ },
2026
+ {
2027
+ "__schema": "TypeRefSchema",
2028
+ "location": {
2029
+ "filePath": "schema.main.runtime.ts",
2030
+ "line": 231,
2031
+ "character": 7
2032
+ },
2033
+ "name": "BuilderMain",
2034
+ "componentId": {
2035
+ "scope": "teambit.pipelines",
2036
+ "name": "builder"
2037
+ }
2038
+ },
2039
+ {
2040
+ "__schema": "TypeRefSchema",
2041
+ "location": {
2042
+ "filePath": "schema.main.runtime.ts",
2043
+ "line": 232,
2044
+ "character": 7
2045
+ },
2046
+ "name": "Workspace",
2047
+ "componentId": {
2048
+ "scope": "teambit.workspace",
2049
+ "name": "workspace"
2050
+ }
2051
+ },
2052
+ {
2053
+ "__schema": "TypeRefSchema",
2054
+ "location": {
2055
+ "filePath": "schema.main.runtime.ts",
2056
+ "line": 233,
2057
+ "character": 7
2058
+ },
2059
+ "name": "ScopeMain",
2060
+ "componentId": {
2061
+ "scope": "teambit.scope",
2062
+ "name": "scope"
2063
+ }
2064
+ }
2065
+ ]
2066
+ },
2067
+ "isOptional": false,
2068
+ "isSpread": false
2069
+ },
2070
+ {
2071
+ "__schema": "ParameterSchema",
2072
+ "location": {
2073
+ "filePath": "schema.main.runtime.ts",
2074
+ "line": 235,
2075
+ "character": 5
2076
+ },
2077
+ "name": "config",
2078
+ "type": {
2079
+ "__schema": "TypeRefSchema",
2080
+ "location": {
2081
+ "filePath": "schema.main.runtime.ts",
2082
+ "line": 235,
2083
+ "character": 13
2084
+ },
2085
+ "name": "SchemaConfig",
2086
+ "internalFilePath": "schema.main.runtime.ts"
2087
+ },
2088
+ "isOptional": false,
2089
+ "isSpread": false
2090
+ },
2091
+ {
2092
+ "__schema": "ParameterSchema",
2093
+ "location": {
2094
+ "filePath": "schema.main.runtime.ts",
2095
+ "line": 236,
2096
+ "character": 5
2097
+ },
2098
+ "name": "[ parserSlot ]",
2099
+ "type": {
2100
+ "__schema": "TupleTypeSchema",
2101
+ "location": {
2102
+ "filePath": "schema.main.runtime.ts",
2103
+ "line": 236,
2104
+ "character": 19
2105
+ },
2106
+ "elements": [
2107
+ {
2108
+ "__schema": "TypeRefSchema",
2109
+ "location": {
2110
+ "filePath": "schema.main.runtime.ts",
2111
+ "line": 236,
2112
+ "character": 20
2113
+ },
2114
+ "name": "ParserSlot",
2115
+ "internalFilePath": "schema.main.runtime.ts"
2116
+ }
2117
+ ]
2118
+ },
2119
+ "isOptional": false,
2120
+ "isSpread": false
2121
+ }
2122
+ ],
2123
+ "returnType": {
2124
+ "__schema": "InferenceTypeSchema",
2125
+ "location": {
2126
+ "filePath": "schema.main.runtime.ts",
2127
+ "line": 224,
2128
+ "character": 3
2129
+ },
2130
+ "type": "Promise<SchemaMain>"
2131
+ },
2132
+ "modifiers": [
2133
+ "static",
2134
+ "async"
2135
+ ]
2136
+ }
2137
+ ],
2138
+ "extendsNodes": [],
2139
+ "implementNodes": []
194
2140
  }
195
2141
  },
196
2142
  {
@@ -212,23 +2158,2305 @@
212
2158
  },
213
2159
  "name": "SchemaAspect",
214
2160
  "exportNode": {
215
- "__schema": "TypeRefSchema",
2161
+ "__schema": "VariableLikeSchema",
216
2162
  "location": {
217
- "filePath": "index.ts",
218
- "line": 16,
219
- "character": 10
2163
+ "filePath": "schema.aspect.ts",
2164
+ "line": 3,
2165
+ "character": 14
220
2166
  },
221
- "name": "SchemaAspect"
2167
+ "signature": "const SchemaAspect: Aspect",
2168
+ "name": "SchemaAspect",
2169
+ "type": {
2170
+ "__schema": "TypeRefSchema",
2171
+ "location": {
2172
+ "filePath": "schema.aspect.ts",
2173
+ "line": 3,
2174
+ "character": 14
2175
+ },
2176
+ "name": "Aspect",
2177
+ "componentId": {
2178
+ "scope": "teambit.harmony",
2179
+ "name": "harmony",
2180
+ "version": "0.4.6"
2181
+ }
2182
+ },
2183
+ "isOptional": false,
2184
+ "defaultValue": "Aspect.create({\n id: 'teambit.semantics/schema',\n})"
222
2185
  }
223
2186
  }
224
2187
  ],
225
2188
  "internals": []
226
2189
  },
227
- "internals": [],
2190
+ "internals": [
2191
+ {
2192
+ "__schema": "ModuleSchema",
2193
+ "location": {
2194
+ "filePath": "parser.ts",
2195
+ "line": 1,
2196
+ "character": 1
2197
+ },
2198
+ "exports": [
2199
+ {
2200
+ "__schema": "InterfaceSchema",
2201
+ "location": {
2202
+ "filePath": "parser.ts",
2203
+ "line": 3,
2204
+ "character": 1
2205
+ },
2206
+ "signature": "interface Parser",
2207
+ "name": "Parser",
2208
+ "members": [
2209
+ {
2210
+ "__schema": "VariableLikeSchema",
2211
+ "location": {
2212
+ "filePath": "parser.ts",
2213
+ "line": 7,
2214
+ "character": 3
2215
+ },
2216
+ "doc": {
2217
+ "__schema": "DocSchema",
2218
+ "location": {
2219
+ "filePath": "parser.ts",
2220
+ "line": 4,
2221
+ "character": 3
2222
+ },
2223
+ "raw": "/**\n * regex to apply on which components compiler applies.\n */",
2224
+ "comment": "regex to apply on which components compiler applies."
2225
+ },
2226
+ "signature": "(property) Parser.extension: RegExp",
2227
+ "name": "extension",
2228
+ "type": {
2229
+ "__schema": "TypeRefSchema",
2230
+ "location": {
2231
+ "filePath": "parser.ts",
2232
+ "line": 7,
2233
+ "character": 14
2234
+ },
2235
+ "name": "RegExp"
2236
+ },
2237
+ "isOptional": false
2238
+ },
2239
+ {
2240
+ "__schema": "FunctionLikeSchema",
2241
+ "location": {
2242
+ "filePath": "parser.ts",
2243
+ "line": 12,
2244
+ "character": 3
2245
+ },
2246
+ "doc": {
2247
+ "__schema": "DocSchema",
2248
+ "location": {
2249
+ "filePath": "parser.ts",
2250
+ "line": 9,
2251
+ "character": 3
2252
+ },
2253
+ "raw": "/**\n * parse a module.\n */",
2254
+ "comment": "parse a module."
2255
+ },
2256
+ "signature": "(method) Parser.parseModule(modulePath: string, content?: string): Export[]",
2257
+ "name": "parseModule",
2258
+ "params": [
2259
+ {
2260
+ "__schema": "ParameterSchema",
2261
+ "location": {
2262
+ "filePath": "parser.ts",
2263
+ "line": 12,
2264
+ "character": 15
2265
+ },
2266
+ "name": "modulePath",
2267
+ "type": {
2268
+ "__schema": "KeywordTypeSchema",
2269
+ "location": {
2270
+ "filePath": "parser.ts",
2271
+ "line": 12,
2272
+ "character": 27
2273
+ },
2274
+ "name": "string"
2275
+ },
2276
+ "isOptional": false,
2277
+ "isSpread": false
2278
+ },
2279
+ {
2280
+ "__schema": "ParameterSchema",
2281
+ "location": {
2282
+ "filePath": "parser.ts",
2283
+ "line": 12,
2284
+ "character": 35
2285
+ },
2286
+ "name": "content",
2287
+ "type": {
2288
+ "__schema": "KeywordTypeSchema",
2289
+ "location": {
2290
+ "filePath": "parser.ts",
2291
+ "line": 12,
2292
+ "character": 45
2293
+ },
2294
+ "name": "string"
2295
+ },
2296
+ "isOptional": true,
2297
+ "isSpread": false
2298
+ }
2299
+ ],
2300
+ "returnType": {
2301
+ "__schema": "TypeArraySchema",
2302
+ "location": {
2303
+ "filePath": "parser.ts",
2304
+ "line": 12,
2305
+ "character": 54
2306
+ },
2307
+ "type": {
2308
+ "__schema": "TypeRefSchema",
2309
+ "location": {
2310
+ "filePath": "parser.ts",
2311
+ "line": 12,
2312
+ "character": 54
2313
+ },
2314
+ "name": "Export",
2315
+ "componentId": {
2316
+ "scope": "teambit.semantics",
2317
+ "name": "entities/semantic-schema",
2318
+ "version": "0.0.69"
2319
+ }
2320
+ }
2321
+ },
2322
+ "modifiers": []
2323
+ }
2324
+ ],
2325
+ "extendsNodes": []
2326
+ }
2327
+ ],
2328
+ "internals": []
2329
+ },
2330
+ {
2331
+ "__schema": "ModuleSchema",
2332
+ "location": {
2333
+ "filePath": "schema-extractor.ts",
2334
+ "line": 1,
2335
+ "character": 1
2336
+ },
2337
+ "exports": [
2338
+ {
2339
+ "__schema": "InterfaceSchema",
2340
+ "location": {
2341
+ "filePath": "schema-extractor.ts",
2342
+ "line": 5,
2343
+ "character": 1
2344
+ },
2345
+ "signature": "interface SchemaExtractor",
2346
+ "name": "SchemaExtractor",
2347
+ "members": [
2348
+ {
2349
+ "__schema": "FunctionLikeSchema",
2350
+ "location": {
2351
+ "filePath": "schema-extractor.ts",
2352
+ "line": 9,
2353
+ "character": 3
2354
+ },
2355
+ "doc": {
2356
+ "__schema": "DocSchema",
2357
+ "location": {
2358
+ "filePath": "schema-extractor.ts",
2359
+ "line": 6,
2360
+ "character": 3
2361
+ },
2362
+ "raw": "/**\n * extract a semantic schema from a component.\n */",
2363
+ "comment": "extract a semantic schema from a component."
2364
+ },
2365
+ "signature": "(method) SchemaExtractor.extract(component: Component, options?: SchemaExtractorOptions): Promise<APISchema>",
2366
+ "name": "extract",
2367
+ "params": [
2368
+ {
2369
+ "__schema": "ParameterSchema",
2370
+ "location": {
2371
+ "filePath": "schema-extractor.ts",
2372
+ "line": 9,
2373
+ "character": 11
2374
+ },
2375
+ "name": "component",
2376
+ "type": {
2377
+ "__schema": "TypeRefSchema",
2378
+ "location": {
2379
+ "filePath": "schema-extractor.ts",
2380
+ "line": 9,
2381
+ "character": 22
2382
+ },
2383
+ "name": "Component",
2384
+ "componentId": {
2385
+ "scope": "teambit.component",
2386
+ "name": "component"
2387
+ }
2388
+ },
2389
+ "isOptional": false,
2390
+ "isSpread": false
2391
+ },
2392
+ {
2393
+ "__schema": "ParameterSchema",
2394
+ "location": {
2395
+ "filePath": "schema-extractor.ts",
2396
+ "line": 9,
2397
+ "character": 33
2398
+ },
2399
+ "name": "options",
2400
+ "type": {
2401
+ "__schema": "TypeRefSchema",
2402
+ "location": {
2403
+ "filePath": "schema-extractor.ts",
2404
+ "line": 9,
2405
+ "character": 43
2406
+ },
2407
+ "name": "SchemaExtractorOptions"
2408
+ },
2409
+ "isOptional": true,
2410
+ "isSpread": false
2411
+ }
2412
+ ],
2413
+ "returnType": {
2414
+ "__schema": "TypeRefSchema",
2415
+ "location": {
2416
+ "filePath": "schema-extractor.ts",
2417
+ "line": 9,
2418
+ "character": 68
2419
+ },
2420
+ "name": "Promise",
2421
+ "typeArgs": [
2422
+ {
2423
+ "__schema": "TypeRefSchema",
2424
+ "location": {
2425
+ "filePath": "schema-extractor.ts",
2426
+ "line": 9,
2427
+ "character": 76
2428
+ },
2429
+ "name": "APISchema",
2430
+ "componentId": {
2431
+ "scope": "teambit.semantics",
2432
+ "name": "entities/semantic-schema",
2433
+ "version": "0.0.69"
2434
+ }
2435
+ }
2436
+ ]
2437
+ },
2438
+ "modifiers": []
2439
+ },
2440
+ {
2441
+ "__schema": "FunctionLikeSchema",
2442
+ "location": {
2443
+ "filePath": "schema-extractor.ts",
2444
+ "line": 16,
2445
+ "character": 3
2446
+ },
2447
+ "doc": {
2448
+ "__schema": "DocSchema",
2449
+ "location": {
2450
+ "filePath": "schema-extractor.ts",
2451
+ "line": 10,
2452
+ "character": 3
2453
+ },
2454
+ "raw": "/**\n * release resources if no schemas are needed for this process.\n * for typescript, this will kill the tsserver process.\n * for performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\n * components will be very slow.\n */",
2455
+ "comment": "release resources if no schemas are needed for this process.\nfor typescript, this will kill the tsserver process.\nfor performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\ncomponents will be very slow."
2456
+ },
2457
+ "signature": "(method) SchemaExtractor.dispose(): void",
2458
+ "name": "dispose",
2459
+ "params": [],
2460
+ "returnType": {
2461
+ "__schema": "KeywordTypeSchema",
2462
+ "location": {
2463
+ "filePath": "schema-extractor.ts",
2464
+ "line": 16,
2465
+ "character": 14
2466
+ },
2467
+ "name": "void"
2468
+ },
2469
+ "modifiers": []
2470
+ }
2471
+ ],
2472
+ "extendsNodes": []
2473
+ },
2474
+ {
2475
+ "__schema": "TypeSchema",
2476
+ "location": {
2477
+ "filePath": "schema-extractor.ts",
2478
+ "line": 19,
2479
+ "character": 1
2480
+ },
2481
+ "signature": "type SchemaExtractorOptions = {\n formatter?: Formatter | undefined;\n tsserverPath?: string | undefined;\n contextPath?: string | undefined;\n skipInternals?: boolean | undefined;\n}",
2482
+ "name": "SchemaExtractorOptions",
2483
+ "type": {
2484
+ "__schema": "TypeLiteralSchema",
2485
+ "location": {
2486
+ "filePath": "schema-extractor.ts",
2487
+ "line": 19,
2488
+ "character": 38
2489
+ },
2490
+ "members": [
2491
+ {
2492
+ "__schema": "VariableLikeSchema",
2493
+ "location": {
2494
+ "filePath": "schema-extractor.ts",
2495
+ "line": 20,
2496
+ "character": 3
2497
+ },
2498
+ "signature": "(property) formatter?: Formatter | undefined",
2499
+ "name": "formatter",
2500
+ "type": {
2501
+ "__schema": "TypeRefSchema",
2502
+ "location": {
2503
+ "filePath": "schema-extractor.ts",
2504
+ "line": 20,
2505
+ "character": 15
2506
+ },
2507
+ "name": "Formatter",
2508
+ "componentId": {
2509
+ "scope": "teambit.defender",
2510
+ "name": "formatter"
2511
+ }
2512
+ },
2513
+ "isOptional": true
2514
+ },
2515
+ {
2516
+ "__schema": "VariableLikeSchema",
2517
+ "location": {
2518
+ "filePath": "schema-extractor.ts",
2519
+ "line": 21,
2520
+ "character": 3
2521
+ },
2522
+ "signature": "(property) tsserverPath?: string | undefined",
2523
+ "name": "tsserverPath",
2524
+ "type": {
2525
+ "__schema": "KeywordTypeSchema",
2526
+ "location": {
2527
+ "filePath": "schema-extractor.ts",
2528
+ "line": 21,
2529
+ "character": 18
2530
+ },
2531
+ "name": "string"
2532
+ },
2533
+ "isOptional": true
2534
+ },
2535
+ {
2536
+ "__schema": "VariableLikeSchema",
2537
+ "location": {
2538
+ "filePath": "schema-extractor.ts",
2539
+ "line": 22,
2540
+ "character": 3
2541
+ },
2542
+ "signature": "(property) contextPath?: string | undefined",
2543
+ "name": "contextPath",
2544
+ "type": {
2545
+ "__schema": "KeywordTypeSchema",
2546
+ "location": {
2547
+ "filePath": "schema-extractor.ts",
2548
+ "line": 22,
2549
+ "character": 17
2550
+ },
2551
+ "name": "string"
2552
+ },
2553
+ "isOptional": true
2554
+ },
2555
+ {
2556
+ "__schema": "VariableLikeSchema",
2557
+ "location": {
2558
+ "filePath": "schema-extractor.ts",
2559
+ "line": 23,
2560
+ "character": 3
2561
+ },
2562
+ "signature": "(property) skipInternals?: boolean | undefined",
2563
+ "name": "skipInternals",
2564
+ "type": {
2565
+ "__schema": "KeywordTypeSchema",
2566
+ "location": {
2567
+ "filePath": "schema-extractor.ts",
2568
+ "line": 23,
2569
+ "character": 19
2570
+ },
2571
+ "name": "boolean"
2572
+ },
2573
+ "isOptional": true
2574
+ }
2575
+ ]
2576
+ }
2577
+ }
2578
+ ],
2579
+ "internals": []
2580
+ },
2581
+ {
2582
+ "__schema": "ModuleSchema",
2583
+ "location": {
2584
+ "filePath": "schema.task.ts",
2585
+ "line": 1,
2586
+ "character": 1
2587
+ },
2588
+ "exports": [
2589
+ {
2590
+ "__schema": "VariableLikeSchema",
2591
+ "location": {
2592
+ "filePath": "schema.task.ts",
2593
+ "line": 16,
2594
+ "character": 14
2595
+ },
2596
+ "signature": "const SCHEMA_TASK_NAME: \"ExtractSchema\"",
2597
+ "name": "SCHEMA_TASK_NAME",
2598
+ "type": {
2599
+ "__schema": "InferenceTypeSchema",
2600
+ "location": {
2601
+ "filePath": "schema.task.ts",
2602
+ "line": 16,
2603
+ "character": 14
2604
+ },
2605
+ "type": "\"ExtractSchema\""
2606
+ },
2607
+ "isOptional": false,
2608
+ "defaultValue": "'ExtractSchema'"
2609
+ },
2610
+ {
2611
+ "__schema": "VariableLikeSchema",
2612
+ "location": {
2613
+ "filePath": "schema.task.ts",
2614
+ "line": 17,
2615
+ "character": 14
2616
+ },
2617
+ "signature": "const SCHEMA_ARTIFACT_NAME: \"schema\"",
2618
+ "name": "SCHEMA_ARTIFACT_NAME",
2619
+ "type": {
2620
+ "__schema": "InferenceTypeSchema",
2621
+ "location": {
2622
+ "filePath": "schema.task.ts",
2623
+ "line": 17,
2624
+ "character": 14
2625
+ },
2626
+ "type": "\"schema\""
2627
+ },
2628
+ "isOptional": false,
2629
+ "defaultValue": "'schema'"
2630
+ },
2631
+ {
2632
+ "__schema": "ClassSchema",
2633
+ "location": {
2634
+ "filePath": "schema.task.ts",
2635
+ "line": 22,
2636
+ "character": 1
2637
+ },
2638
+ "doc": {
2639
+ "__schema": "DocSchema",
2640
+ "location": {
2641
+ "filePath": "schema.task.ts",
2642
+ "line": 19,
2643
+ "character": 1
2644
+ },
2645
+ "raw": "/**\n * extract and persist the component schema as a json file\n */",
2646
+ "comment": "extract and persist the component schema as a json file"
2647
+ },
2648
+ "signature": "class SchemaTask",
2649
+ "name": "SchemaTask",
2650
+ "members": [
2651
+ {
2652
+ "__schema": "VariableLikeSchema",
2653
+ "location": {
2654
+ "filePath": "schema.task.ts",
2655
+ "line": 23,
2656
+ "character": 3
2657
+ },
2658
+ "signature": "(property) SchemaTask.name: \"ExtractSchema\"",
2659
+ "name": "name",
2660
+ "type": {
2661
+ "__schema": "InferenceTypeSchema",
2662
+ "location": {
2663
+ "filePath": "schema.task.ts",
2664
+ "line": 23,
2665
+ "character": 3
2666
+ },
2667
+ "type": "\"ExtractSchema\""
2668
+ },
2669
+ "isOptional": true,
2670
+ "defaultValue": "SCHEMA_TASK_NAME"
2671
+ },
2672
+ {
2673
+ "__schema": "VariableLikeSchema",
2674
+ "location": {
2675
+ "filePath": "schema.task.ts",
2676
+ "line": 24,
2677
+ "character": 3
2678
+ },
2679
+ "signature": "(property) SchemaTask.location: TaskLocation",
2680
+ "name": "location",
2681
+ "type": {
2682
+ "__schema": "TypeRefSchema",
2683
+ "location": {
2684
+ "filePath": "schema.task.ts",
2685
+ "line": 24,
2686
+ "character": 3
2687
+ },
2688
+ "name": "TaskLocation",
2689
+ "componentId": {
2690
+ "scope": "teambit.pipelines",
2691
+ "name": "builder"
2692
+ }
2693
+ },
2694
+ "isOptional": true,
2695
+ "defaultValue": "'end'"
2696
+ },
2697
+ {
2698
+ "__schema": "VariableLikeSchema",
2699
+ "location": {
2700
+ "filePath": "schema.task.ts",
2701
+ "line": 25,
2702
+ "character": 3
2703
+ },
2704
+ "signature": "(property) SchemaTask.description: \"extract api schema for a set of components\"",
2705
+ "name": "description",
2706
+ "type": {
2707
+ "__schema": "InferenceTypeSchema",
2708
+ "location": {
2709
+ "filePath": "schema.task.ts",
2710
+ "line": 25,
2711
+ "character": 3
2712
+ },
2713
+ "type": "\"extract api schema for a set of components\""
2714
+ },
2715
+ "isOptional": true,
2716
+ "defaultValue": "'extract api schema for a set of components'"
2717
+ },
2718
+ {
2719
+ "__schema": "ConstructorSchema",
2720
+ "location": {
2721
+ "filePath": "schema.task.ts",
2722
+ "line": 27,
2723
+ "character": 3
2724
+ },
2725
+ "signature": "constructor SchemaTask(aspectId: string, schema: SchemaMain, logger: Logger): SchemaTask",
2726
+ "name": "constructor",
2727
+ "params": [
2728
+ {
2729
+ "__schema": "ParameterSchema",
2730
+ "location": {
2731
+ "filePath": "schema.task.ts",
2732
+ "line": 27,
2733
+ "character": 15
2734
+ },
2735
+ "name": "aspectId",
2736
+ "type": {
2737
+ "__schema": "KeywordTypeSchema",
2738
+ "location": {
2739
+ "filePath": "schema.task.ts",
2740
+ "line": 27,
2741
+ "character": 34
2742
+ },
2743
+ "name": "string"
2744
+ },
2745
+ "isOptional": false,
2746
+ "isSpread": false
2747
+ },
2748
+ {
2749
+ "__schema": "ParameterSchema",
2750
+ "location": {
2751
+ "filePath": "schema.task.ts",
2752
+ "line": 27,
2753
+ "character": 42
2754
+ },
2755
+ "name": "schema",
2756
+ "type": {
2757
+ "__schema": "TypeRefSchema",
2758
+ "location": {
2759
+ "filePath": "schema.task.ts",
2760
+ "line": 27,
2761
+ "character": 58
2762
+ },
2763
+ "name": "SchemaMain"
2764
+ },
2765
+ "isOptional": false,
2766
+ "isSpread": false
2767
+ },
2768
+ {
2769
+ "__schema": "ParameterSchema",
2770
+ "location": {
2771
+ "filePath": "schema.task.ts",
2772
+ "line": 27,
2773
+ "character": 70
2774
+ },
2775
+ "name": "logger",
2776
+ "type": {
2777
+ "__schema": "TypeRefSchema",
2778
+ "location": {
2779
+ "filePath": "schema.task.ts",
2780
+ "line": 27,
2781
+ "character": 86
2782
+ },
2783
+ "name": "Logger",
2784
+ "componentId": {
2785
+ "scope": "teambit.harmony",
2786
+ "name": "logger"
2787
+ }
2788
+ },
2789
+ "isOptional": false,
2790
+ "isSpread": false
2791
+ }
2792
+ ],
2793
+ "returnType": {
2794
+ "__schema": "ThisTypeSchema",
2795
+ "location": {
2796
+ "filePath": "schema.task.ts",
2797
+ "line": 22,
2798
+ "character": 1
2799
+ },
2800
+ "name": "SchemaTask"
2801
+ },
2802
+ "modifiers": []
2803
+ },
2804
+ {
2805
+ "__schema": "FunctionLikeSchema",
2806
+ "location": {
2807
+ "filePath": "schema.task.ts",
2808
+ "line": 29,
2809
+ "character": 3
2810
+ },
2811
+ "signature": "(method) SchemaTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
2812
+ "name": "execute",
2813
+ "params": [
2814
+ {
2815
+ "__schema": "ParameterSchema",
2816
+ "location": {
2817
+ "filePath": "schema.task.ts",
2818
+ "line": 29,
2819
+ "character": 17
2820
+ },
2821
+ "name": "context",
2822
+ "type": {
2823
+ "__schema": "TypeRefSchema",
2824
+ "location": {
2825
+ "filePath": "schema.task.ts",
2826
+ "line": 29,
2827
+ "character": 26
2828
+ },
2829
+ "name": "BuildContext",
2830
+ "componentId": {
2831
+ "scope": "teambit.pipelines",
2832
+ "name": "builder"
2833
+ }
2834
+ },
2835
+ "isOptional": false,
2836
+ "isSpread": false
2837
+ }
2838
+ ],
2839
+ "returnType": {
2840
+ "__schema": "TypeRefSchema",
2841
+ "location": {
2842
+ "filePath": "schema.task.ts",
2843
+ "line": 29,
2844
+ "character": 41
2845
+ },
2846
+ "name": "Promise",
2847
+ "typeArgs": [
2848
+ {
2849
+ "__schema": "TypeRefSchema",
2850
+ "location": {
2851
+ "filePath": "schema.task.ts",
2852
+ "line": 29,
2853
+ "character": 49
2854
+ },
2855
+ "name": "BuiltTaskResult",
2856
+ "componentId": {
2857
+ "scope": "teambit.pipelines",
2858
+ "name": "builder"
2859
+ }
2860
+ }
2861
+ ]
2862
+ },
2863
+ "modifiers": [
2864
+ "async"
2865
+ ]
2866
+ }
2867
+ ],
2868
+ "extendsNodes": [],
2869
+ "implementNodes": [
2870
+ {
2871
+ "__schema": "ExpressionWithTypeArgumentsSchema",
2872
+ "location": {
2873
+ "filePath": "schema.task.ts",
2874
+ "line": 22,
2875
+ "character": 36
2876
+ },
2877
+ "name": "implements BuildTask",
2878
+ "typeArgs": [],
2879
+ "expression": {
2880
+ "__schema": "TypeRefSchema",
2881
+ "location": {
2882
+ "filePath": "schema.task.ts",
2883
+ "line": 22,
2884
+ "character": 36
2885
+ },
2886
+ "name": "BuildTask",
2887
+ "componentId": {
2888
+ "_legacy": {
2889
+ "scope": "teambit.semantics",
2890
+ "name": "schema",
2891
+ "version": "1.0.259"
2892
+ },
2893
+ "_scope": "teambit.semantics"
2894
+ }
2895
+ }
2896
+ }
2897
+ ]
2898
+ },
2899
+ {
2900
+ "__schema": "FunctionLikeSchema",
2901
+ "location": {
2902
+ "filePath": "schema.task.ts",
2903
+ "line": 69,
2904
+ "character": 1
2905
+ },
2906
+ "signature": "function getSchemaArtifactPath(): string",
2907
+ "name": "getSchemaArtifactPath",
2908
+ "params": [],
2909
+ "returnType": {
2910
+ "__schema": "InferenceTypeSchema",
2911
+ "location": {
2912
+ "filePath": "schema.task.ts",
2913
+ "line": 69,
2914
+ "character": 1
2915
+ },
2916
+ "type": "string"
2917
+ },
2918
+ "modifiers": [
2919
+ "export"
2920
+ ]
2921
+ },
2922
+ {
2923
+ "__schema": "FunctionLikeSchema",
2924
+ "location": {
2925
+ "filePath": "schema.task.ts",
2926
+ "line": 73,
2927
+ "character": 1
2928
+ },
2929
+ "signature": "function getSchemaArtifactDef(): ArtifactDefinition",
2930
+ "name": "getSchemaArtifactDef",
2931
+ "params": [],
2932
+ "returnType": {
2933
+ "__schema": "TypeRefSchema",
2934
+ "location": {
2935
+ "filePath": "schema.task.ts",
2936
+ "line": 73,
2937
+ "character": 1
2938
+ },
2939
+ "name": "ArtifactDefinition",
2940
+ "componentId": {
2941
+ "scope": "teambit.pipelines",
2942
+ "name": "builder"
2943
+ }
2944
+ },
2945
+ "modifiers": [
2946
+ "export"
2947
+ ]
2948
+ }
2949
+ ],
2950
+ "internals": []
2951
+ },
2952
+ {
2953
+ "__schema": "ModuleSchema",
2954
+ "location": {
2955
+ "filePath": "schema-env.ts",
2956
+ "line": 1,
2957
+ "character": 1
2958
+ },
2959
+ "exports": [
2960
+ {
2961
+ "__schema": "InterfaceSchema",
2962
+ "location": {
2963
+ "filePath": "schema-env.ts",
2964
+ "line": 8,
2965
+ "character": 1
2966
+ },
2967
+ "doc": {
2968
+ "__schema": "DocSchema",
2969
+ "location": {
2970
+ "filePath": "schema-env.ts",
2971
+ "line": 4,
2972
+ "character": 1
2973
+ },
2974
+ "raw": "/**\n * define a schema extractor to extract type information\n * and docs for your components.\n */",
2975
+ "comment": "define a schema extractor to extract type information\nand docs for your components."
2976
+ },
2977
+ "signature": "interface SchemaEnv",
2978
+ "name": "SchemaEnv",
2979
+ "members": [
2980
+ {
2981
+ "__schema": "FunctionLikeSchema",
2982
+ "location": {
2983
+ "filePath": "schema-env.ts",
2984
+ "line": 9,
2985
+ "character": 3
2986
+ },
2987
+ "signature": "(method) SchemaEnv.schemaExtractor(): EnvHandler<SchemaExtractor>",
2988
+ "name": "schemaExtractor",
2989
+ "params": [],
2990
+ "returnType": {
2991
+ "__schema": "TypeRefSchema",
2992
+ "location": {
2993
+ "filePath": "schema-env.ts",
2994
+ "line": 9,
2995
+ "character": 22
2996
+ },
2997
+ "name": "EnvHandler",
2998
+ "componentId": {
2999
+ "scope": "teambit.envs",
3000
+ "name": "envs"
3001
+ },
3002
+ "typeArgs": [
3003
+ {
3004
+ "__schema": "TypeRefSchema",
3005
+ "location": {
3006
+ "filePath": "schema-env.ts",
3007
+ "line": 9,
3008
+ "character": 33
3009
+ },
3010
+ "name": "SchemaExtractor"
3011
+ }
3012
+ ]
3013
+ },
3014
+ "modifiers": []
3015
+ }
3016
+ ],
3017
+ "extendsNodes": []
3018
+ }
3019
+ ],
3020
+ "internals": []
3021
+ },
3022
+ {
3023
+ "__schema": "ModuleSchema",
3024
+ "location": {
3025
+ "filePath": "schema.main.runtime.ts",
3026
+ "line": 1,
3027
+ "character": 1
3028
+ },
3029
+ "exports": [
3030
+ {
3031
+ "__schema": "TypeSchema",
3032
+ "location": {
3033
+ "filePath": "schema.main.runtime.ts",
3034
+ "line": 28,
3035
+ "character": 1
3036
+ },
3037
+ "signature": "type ParserSlot = SlotRegistry<Parser>",
3038
+ "name": "ParserSlot",
3039
+ "type": {
3040
+ "__schema": "TypeRefSchema",
3041
+ "location": {
3042
+ "filePath": "schema.main.runtime.ts",
3043
+ "line": 28,
3044
+ "character": 26
3045
+ },
3046
+ "name": "SlotRegistry",
3047
+ "componentId": {
3048
+ "scope": "teambit.harmony",
3049
+ "name": "harmony",
3050
+ "version": "0.4.6"
3051
+ },
3052
+ "typeArgs": [
3053
+ {
3054
+ "__schema": "TypeRefSchema",
3055
+ "location": {
3056
+ "filePath": "schema.main.runtime.ts",
3057
+ "line": 28,
3058
+ "character": 39
3059
+ },
3060
+ "name": "Parser"
3061
+ }
3062
+ ]
3063
+ }
3064
+ },
3065
+ {
3066
+ "__schema": "TypeSchema",
3067
+ "location": {
3068
+ "filePath": "schema.main.runtime.ts",
3069
+ "line": 30,
3070
+ "character": 1
3071
+ },
3072
+ "signature": "type SchemaConfig = {\n defaultParser: string;\n disabled?: boolean | undefined;\n}",
3073
+ "name": "SchemaConfig",
3074
+ "type": {
3075
+ "__schema": "TypeLiteralSchema",
3076
+ "location": {
3077
+ "filePath": "schema.main.runtime.ts",
3078
+ "line": 30,
3079
+ "character": 28
3080
+ },
3081
+ "members": [
3082
+ {
3083
+ "__schema": "VariableLikeSchema",
3084
+ "location": {
3085
+ "filePath": "schema.main.runtime.ts",
3086
+ "line": 34,
3087
+ "character": 3
3088
+ },
3089
+ "doc": {
3090
+ "__schema": "DocSchema",
3091
+ "location": {
3092
+ "filePath": "schema.main.runtime.ts",
3093
+ "line": 31,
3094
+ "character": 3
3095
+ },
3096
+ "raw": "/**\n * default parser\n */",
3097
+ "comment": "default parser"
3098
+ },
3099
+ "signature": "(property) defaultParser: string",
3100
+ "name": "defaultParser",
3101
+ "type": {
3102
+ "__schema": "KeywordTypeSchema",
3103
+ "location": {
3104
+ "filePath": "schema.main.runtime.ts",
3105
+ "line": 34,
3106
+ "character": 18
3107
+ },
3108
+ "name": "string"
3109
+ },
3110
+ "isOptional": false
3111
+ },
3112
+ {
3113
+ "__schema": "VariableLikeSchema",
3114
+ "location": {
3115
+ "filePath": "schema.main.runtime.ts",
3116
+ "line": 38,
3117
+ "character": 3
3118
+ },
3119
+ "doc": {
3120
+ "__schema": "DocSchema",
3121
+ "location": {
3122
+ "filePath": "schema.main.runtime.ts",
3123
+ "line": 35,
3124
+ "character": 3
3125
+ },
3126
+ "raw": "/**\n * disable extracting schema\n */",
3127
+ "comment": "disable extracting schema"
3128
+ },
3129
+ "signature": "(property) disabled?: boolean | undefined",
3130
+ "name": "disabled",
3131
+ "type": {
3132
+ "__schema": "KeywordTypeSchema",
3133
+ "location": {
3134
+ "filePath": "schema.main.runtime.ts",
3135
+ "line": 38,
3136
+ "character": 14
3137
+ },
3138
+ "name": "boolean"
3139
+ },
3140
+ "isOptional": true
3141
+ }
3142
+ ]
3143
+ }
3144
+ },
3145
+ {
3146
+ "__schema": "ClassSchema",
3147
+ "location": {
3148
+ "filePath": "schema.main.runtime.ts",
3149
+ "line": 44,
3150
+ "character": 1
3151
+ },
3152
+ "doc": {
3153
+ "__schema": "DocSchema",
3154
+ "location": {
3155
+ "filePath": "schema.main.runtime.ts",
3156
+ "line": 41,
3157
+ "character": 1
3158
+ },
3159
+ "raw": "/**\n * extension for extracting component schemas.\n */",
3160
+ "comment": "extension for extracting component schemas."
3161
+ },
3162
+ "signature": "class SchemaMain",
3163
+ "name": "SchemaMain",
3164
+ "members": [
3165
+ {
3166
+ "__schema": "ConstructorSchema",
3167
+ "location": {
3168
+ "filePath": "schema.main.runtime.ts",
3169
+ "line": 45,
3170
+ "character": 3
3171
+ },
3172
+ "signature": "constructor SchemaMain(parserSlot: ParserSlot, envs: EnvsMain, config: SchemaConfig, builder: BuilderMain, workspace: Workspace, logger: Logger): SchemaMain",
3173
+ "name": "constructor",
3174
+ "params": [
3175
+ {
3176
+ "__schema": "ParameterSchema",
3177
+ "location": {
3178
+ "filePath": "schema.main.runtime.ts",
3179
+ "line": 49,
3180
+ "character": 5
3181
+ },
3182
+ "name": "parserSlot",
3183
+ "type": {
3184
+ "__schema": "TypeRefSchema",
3185
+ "location": {
3186
+ "filePath": "schema.main.runtime.ts",
3187
+ "line": 49,
3188
+ "character": 25
3189
+ },
3190
+ "name": "ParserSlot",
3191
+ "internalFilePath": "schema.main.runtime.ts"
3192
+ },
3193
+ "isOptional": false,
3194
+ "isSpread": false
3195
+ },
3196
+ {
3197
+ "__schema": "ParameterSchema",
3198
+ "location": {
3199
+ "filePath": "schema.main.runtime.ts",
3200
+ "line": 51,
3201
+ "character": 5
3202
+ },
3203
+ "name": "envs",
3204
+ "type": {
3205
+ "__schema": "TypeRefSchema",
3206
+ "location": {
3207
+ "filePath": "schema.main.runtime.ts",
3208
+ "line": 51,
3209
+ "character": 19
3210
+ },
3211
+ "name": "EnvsMain",
3212
+ "componentId": {
3213
+ "scope": "teambit.envs",
3214
+ "name": "envs"
3215
+ }
3216
+ },
3217
+ "isOptional": false,
3218
+ "isSpread": false
3219
+ },
3220
+ {
3221
+ "__schema": "ParameterSchema",
3222
+ "location": {
3223
+ "filePath": "schema.main.runtime.ts",
3224
+ "line": 53,
3225
+ "character": 5
3226
+ },
3227
+ "name": "config",
3228
+ "type": {
3229
+ "__schema": "TypeRefSchema",
3230
+ "location": {
3231
+ "filePath": "schema.main.runtime.ts",
3232
+ "line": 53,
3233
+ "character": 21
3234
+ },
3235
+ "name": "SchemaConfig",
3236
+ "internalFilePath": "schema.main.runtime.ts"
3237
+ },
3238
+ "isOptional": false,
3239
+ "isSpread": false
3240
+ },
3241
+ {
3242
+ "__schema": "ParameterSchema",
3243
+ "location": {
3244
+ "filePath": "schema.main.runtime.ts",
3245
+ "line": 55,
3246
+ "character": 5
3247
+ },
3248
+ "name": "builder",
3249
+ "type": {
3250
+ "__schema": "TypeRefSchema",
3251
+ "location": {
3252
+ "filePath": "schema.main.runtime.ts",
3253
+ "line": 55,
3254
+ "character": 22
3255
+ },
3256
+ "name": "BuilderMain",
3257
+ "componentId": {
3258
+ "scope": "teambit.pipelines",
3259
+ "name": "builder"
3260
+ }
3261
+ },
3262
+ "isOptional": false,
3263
+ "isSpread": false
3264
+ },
3265
+ {
3266
+ "__schema": "ParameterSchema",
3267
+ "location": {
3268
+ "filePath": "schema.main.runtime.ts",
3269
+ "line": 57,
3270
+ "character": 5
3271
+ },
3272
+ "name": "workspace",
3273
+ "type": {
3274
+ "__schema": "TypeRefSchema",
3275
+ "location": {
3276
+ "filePath": "schema.main.runtime.ts",
3277
+ "line": 57,
3278
+ "character": 24
3279
+ },
3280
+ "name": "Workspace",
3281
+ "componentId": {
3282
+ "scope": "teambit.workspace",
3283
+ "name": "workspace"
3284
+ }
3285
+ },
3286
+ "isOptional": false,
3287
+ "isSpread": false
3288
+ },
3289
+ {
3290
+ "__schema": "ParameterSchema",
3291
+ "location": {
3292
+ "filePath": "schema.main.runtime.ts",
3293
+ "line": 59,
3294
+ "character": 5
3295
+ },
3296
+ "name": "logger",
3297
+ "type": {
3298
+ "__schema": "TypeRefSchema",
3299
+ "location": {
3300
+ "filePath": "schema.main.runtime.ts",
3301
+ "line": 59,
3302
+ "character": 21
3303
+ },
3304
+ "name": "Logger",
3305
+ "componentId": {
3306
+ "scope": "teambit.harmony",
3307
+ "name": "logger"
3308
+ }
3309
+ },
3310
+ "isOptional": false,
3311
+ "isSpread": false
3312
+ }
3313
+ ],
3314
+ "returnType": {
3315
+ "__schema": "ThisTypeSchema",
3316
+ "location": {
3317
+ "filePath": "schema.main.runtime.ts",
3318
+ "line": 44,
3319
+ "character": 1
3320
+ },
3321
+ "name": "SchemaMain"
3322
+ },
3323
+ "modifiers": []
3324
+ },
3325
+ {
3326
+ "__schema": "FunctionLikeSchema",
3327
+ "location": {
3328
+ "filePath": "schema.main.runtime.ts",
3329
+ "line": 65,
3330
+ "character": 3
3331
+ },
3332
+ "doc": {
3333
+ "__schema": "DocSchema",
3334
+ "location": {
3335
+ "filePath": "schema.main.runtime.ts",
3336
+ "line": 62,
3337
+ "character": 3
3338
+ },
3339
+ "raw": "/**\n * get the default parser.\n */",
3340
+ "comment": "get the default parser."
3341
+ },
3342
+ "signature": "(method) SchemaMain.getDefaultParser(): Parser",
3343
+ "name": "getDefaultParser",
3344
+ "params": [],
3345
+ "returnType": {
3346
+ "__schema": "TypeRefSchema",
3347
+ "location": {
3348
+ "filePath": "schema.main.runtime.ts",
3349
+ "line": 65,
3350
+ "character": 3
3351
+ },
3352
+ "name": "Parser"
3353
+ },
3354
+ "modifiers": []
3355
+ },
3356
+ {
3357
+ "__schema": "FunctionLikeSchema",
3358
+ "location": {
3359
+ "filePath": "schema.main.runtime.ts",
3360
+ "line": 69,
3361
+ "character": 3
3362
+ },
3363
+ "signature": "(method) SchemaMain.registerSchemaClass(schema: SchemaNodeConstructor): void",
3364
+ "name": "registerSchemaClass",
3365
+ "params": [
3366
+ {
3367
+ "__schema": "ParameterSchema",
3368
+ "location": {
3369
+ "filePath": "schema.main.runtime.ts",
3370
+ "line": 69,
3371
+ "character": 23
3372
+ },
3373
+ "name": "schema",
3374
+ "type": {
3375
+ "__schema": "TypeRefSchema",
3376
+ "location": {
3377
+ "filePath": "schema.main.runtime.ts",
3378
+ "line": 69,
3379
+ "character": 31
3380
+ },
3381
+ "name": "SchemaNodeConstructor",
3382
+ "componentId": {
3383
+ "scope": "teambit.semantics",
3384
+ "name": "entities/semantic-schema",
3385
+ "version": "0.0.69"
3386
+ }
3387
+ },
3388
+ "isOptional": false,
3389
+ "isSpread": false
3390
+ }
3391
+ ],
3392
+ "returnType": {
3393
+ "__schema": "InferenceTypeSchema",
3394
+ "location": {
3395
+ "filePath": "schema.main.runtime.ts",
3396
+ "line": 69,
3397
+ "character": 3
3398
+ },
3399
+ "type": "void"
3400
+ },
3401
+ "modifiers": []
3402
+ },
3403
+ {
3404
+ "__schema": "FunctionLikeSchema",
3405
+ "location": {
3406
+ "filePath": "schema.main.runtime.ts",
3407
+ "line": 76,
3408
+ "character": 3
3409
+ },
3410
+ "doc": {
3411
+ "__schema": "DocSchema",
3412
+ "location": {
3413
+ "filePath": "schema.main.runtime.ts",
3414
+ "line": 73,
3415
+ "character": 3
3416
+ },
3417
+ "raw": "/**\n * parse a module into a component schema.\n */",
3418
+ "comment": "parse a module into a component schema."
3419
+ },
3420
+ "signature": "(method) SchemaMain.parseModule(path: string, content?: string): Export[]",
3421
+ "name": "parseModule",
3422
+ "params": [
3423
+ {
3424
+ "__schema": "ParameterSchema",
3425
+ "location": {
3426
+ "filePath": "schema.main.runtime.ts",
3427
+ "line": 76,
3428
+ "character": 15
3429
+ },
3430
+ "name": "path",
3431
+ "type": {
3432
+ "__schema": "KeywordTypeSchema",
3433
+ "location": {
3434
+ "filePath": "schema.main.runtime.ts",
3435
+ "line": 76,
3436
+ "character": 21
3437
+ },
3438
+ "name": "string"
3439
+ },
3440
+ "isOptional": false,
3441
+ "isSpread": false
3442
+ },
3443
+ {
3444
+ "__schema": "ParameterSchema",
3445
+ "location": {
3446
+ "filePath": "schema.main.runtime.ts",
3447
+ "line": 76,
3448
+ "character": 29
3449
+ },
3450
+ "name": "content",
3451
+ "type": {
3452
+ "__schema": "KeywordTypeSchema",
3453
+ "location": {
3454
+ "filePath": "schema.main.runtime.ts",
3455
+ "line": 76,
3456
+ "character": 39
3457
+ },
3458
+ "name": "string"
3459
+ },
3460
+ "isOptional": true,
3461
+ "isSpread": false
3462
+ }
3463
+ ],
3464
+ "returnType": {
3465
+ "__schema": "TypeArraySchema",
3466
+ "location": {
3467
+ "filePath": "schema.main.runtime.ts",
3468
+ "line": 76,
3469
+ "character": 48
3470
+ },
3471
+ "type": {
3472
+ "__schema": "TypeRefSchema",
3473
+ "location": {
3474
+ "filePath": "schema.main.runtime.ts",
3475
+ "line": 76,
3476
+ "character": 48
3477
+ },
3478
+ "name": "Export",
3479
+ "componentId": {
3480
+ "scope": "teambit.semantics",
3481
+ "name": "entities/semantic-schema",
3482
+ "version": "0.0.69"
3483
+ }
3484
+ }
3485
+ },
3486
+ "modifiers": []
3487
+ },
3488
+ {
3489
+ "__schema": "FunctionLikeSchema",
3490
+ "location": {
3491
+ "filePath": "schema.main.runtime.ts",
3492
+ "line": 91,
3493
+ "character": 3
3494
+ },
3495
+ "signature": "(method) SchemaMain.getSchemaExtractor(component: Component, tsserverPath?: string, contextPath?: string): SchemaExtractor",
3496
+ "name": "getSchemaExtractor",
3497
+ "params": [
3498
+ {
3499
+ "__schema": "ParameterSchema",
3500
+ "location": {
3501
+ "filePath": "schema.main.runtime.ts",
3502
+ "line": 91,
3503
+ "character": 22
3504
+ },
3505
+ "name": "component",
3506
+ "type": {
3507
+ "__schema": "TypeRefSchema",
3508
+ "location": {
3509
+ "filePath": "schema.main.runtime.ts",
3510
+ "line": 91,
3511
+ "character": 33
3512
+ },
3513
+ "name": "Component",
3514
+ "componentId": {
3515
+ "scope": "teambit.component",
3516
+ "name": "component"
3517
+ }
3518
+ },
3519
+ "isOptional": false,
3520
+ "isSpread": false
3521
+ },
3522
+ {
3523
+ "__schema": "ParameterSchema",
3524
+ "location": {
3525
+ "filePath": "schema.main.runtime.ts",
3526
+ "line": 91,
3527
+ "character": 44
3528
+ },
3529
+ "name": "tsserverPath",
3530
+ "type": {
3531
+ "__schema": "KeywordTypeSchema",
3532
+ "location": {
3533
+ "filePath": "schema.main.runtime.ts",
3534
+ "line": 91,
3535
+ "character": 59
3536
+ },
3537
+ "name": "string"
3538
+ },
3539
+ "isOptional": true,
3540
+ "isSpread": false
3541
+ },
3542
+ {
3543
+ "__schema": "ParameterSchema",
3544
+ "location": {
3545
+ "filePath": "schema.main.runtime.ts",
3546
+ "line": 91,
3547
+ "character": 67
3548
+ },
3549
+ "name": "contextPath",
3550
+ "type": {
3551
+ "__schema": "KeywordTypeSchema",
3552
+ "location": {
3553
+ "filePath": "schema.main.runtime.ts",
3554
+ "line": 91,
3555
+ "character": 81
3556
+ },
3557
+ "name": "string"
3558
+ },
3559
+ "isOptional": true,
3560
+ "isSpread": false
3561
+ }
3562
+ ],
3563
+ "returnType": {
3564
+ "__schema": "TypeRefSchema",
3565
+ "location": {
3566
+ "filePath": "schema.main.runtime.ts",
3567
+ "line": 91,
3568
+ "character": 3
3569
+ },
3570
+ "name": "SchemaExtractor"
3571
+ },
3572
+ "modifiers": []
3573
+ },
3574
+ {
3575
+ "__schema": "FunctionLikeSchema",
3576
+ "location": {
3577
+ "filePath": "schema.main.runtime.ts",
3578
+ "line": 108,
3579
+ "character": 3
3580
+ },
3581
+ "doc": {
3582
+ "__schema": "DocSchema",
3583
+ "location": {
3584
+ "filePath": "schema.main.runtime.ts",
3585
+ "line": 100,
3586
+ "character": 3
3587
+ },
3588
+ "raw": "/**\n * get a schema of a component.\n * @param component target component.\n * @param shouldDisposeResourcesOnceDone for long-running processes, such as bit-start/bit-watch, this is not\n * relevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\n * not kept alive. otherwise, the process will never end.\n *\n */",
3589
+ "comment": "get a schema of a component.",
3590
+ "tags": [
3591
+ {
3592
+ "__schema": "PropertyLikeTagSchema",
3593
+ "location": {
3594
+ "filePath": "schema.main.runtime.ts",
3595
+ "line": 102,
3596
+ "character": 6
3597
+ },
3598
+ "name": "component",
3599
+ "tagName": "parameter",
3600
+ "comment": "target component."
3601
+ },
3602
+ {
3603
+ "__schema": "PropertyLikeTagSchema",
3604
+ "location": {
3605
+ "filePath": "schema.main.runtime.ts",
3606
+ "line": 103,
3607
+ "character": 6
3608
+ },
3609
+ "name": "shouldDisposeResourcesOnceDone",
3610
+ "tagName": "parameter",
3611
+ "comment": "for long-running processes, such as bit-start/bit-watch, this is not\nrelevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\nnot kept alive. otherwise, the process will never end."
3612
+ }
3613
+ ]
3614
+ },
3615
+ "signature": "(method) SchemaMain.getSchema(component: Component, shouldDisposeResourcesOnceDone?: boolean, alwaysRunExtractor?: boolean, tsserverPath?: string, contextPath?: string, skipInternals?: boolean, schemaTransformers?: SchemaTransformer[], apiTransformers?: SchemaNodeTransformer[]): Promise<APISchema>",
3616
+ "name": "getSchema",
3617
+ "params": [
3618
+ {
3619
+ "__schema": "ParameterSchema",
3620
+ "location": {
3621
+ "filePath": "schema.main.runtime.ts",
3622
+ "line": 109,
3623
+ "character": 5
3624
+ },
3625
+ "name": "component",
3626
+ "type": {
3627
+ "__schema": "TypeRefSchema",
3628
+ "location": {
3629
+ "filePath": "schema.main.runtime.ts",
3630
+ "line": 109,
3631
+ "character": 16
3632
+ },
3633
+ "name": "Component",
3634
+ "componentId": {
3635
+ "scope": "teambit.component",
3636
+ "name": "component"
3637
+ }
3638
+ },
3639
+ "isOptional": false,
3640
+ "isSpread": false
3641
+ },
3642
+ {
3643
+ "__schema": "ParameterSchema",
3644
+ "location": {
3645
+ "filePath": "schema.main.runtime.ts",
3646
+ "line": 110,
3647
+ "character": 5
3648
+ },
3649
+ "name": "shouldDisposeResourcesOnceDone",
3650
+ "type": {
3651
+ "__schema": "InferenceTypeSchema",
3652
+ "location": {
3653
+ "filePath": "schema.main.runtime.ts",
3654
+ "line": 110,
3655
+ "character": 5
3656
+ },
3657
+ "type": "boolean"
3658
+ },
3659
+ "isOptional": true,
3660
+ "defaultValue": "false",
3661
+ "isSpread": false
3662
+ },
3663
+ {
3664
+ "__schema": "ParameterSchema",
3665
+ "location": {
3666
+ "filePath": "schema.main.runtime.ts",
3667
+ "line": 111,
3668
+ "character": 5
3669
+ },
3670
+ "name": "alwaysRunExtractor",
3671
+ "type": {
3672
+ "__schema": "InferenceTypeSchema",
3673
+ "location": {
3674
+ "filePath": "schema.main.runtime.ts",
3675
+ "line": 111,
3676
+ "character": 5
3677
+ },
3678
+ "type": "boolean"
3679
+ },
3680
+ "isOptional": true,
3681
+ "defaultValue": "false",
3682
+ "isSpread": false
3683
+ },
3684
+ {
3685
+ "__schema": "ParameterSchema",
3686
+ "location": {
3687
+ "filePath": "schema.main.runtime.ts",
3688
+ "line": 112,
3689
+ "character": 5
3690
+ },
3691
+ "name": "tsserverPath",
3692
+ "type": {
3693
+ "__schema": "KeywordTypeSchema",
3694
+ "location": {
3695
+ "filePath": "schema.main.runtime.ts",
3696
+ "line": 112,
3697
+ "character": 20
3698
+ },
3699
+ "name": "string"
3700
+ },
3701
+ "isOptional": true,
3702
+ "isSpread": false
3703
+ },
3704
+ {
3705
+ "__schema": "ParameterSchema",
3706
+ "location": {
3707
+ "filePath": "schema.main.runtime.ts",
3708
+ "line": 113,
3709
+ "character": 5
3710
+ },
3711
+ "name": "contextPath",
3712
+ "type": {
3713
+ "__schema": "KeywordTypeSchema",
3714
+ "location": {
3715
+ "filePath": "schema.main.runtime.ts",
3716
+ "line": 113,
3717
+ "character": 19
3718
+ },
3719
+ "name": "string"
3720
+ },
3721
+ "isOptional": true,
3722
+ "isSpread": false
3723
+ },
3724
+ {
3725
+ "__schema": "ParameterSchema",
3726
+ "location": {
3727
+ "filePath": "schema.main.runtime.ts",
3728
+ "line": 114,
3729
+ "character": 5
3730
+ },
3731
+ "name": "skipInternals",
3732
+ "type": {
3733
+ "__schema": "KeywordTypeSchema",
3734
+ "location": {
3735
+ "filePath": "schema.main.runtime.ts",
3736
+ "line": 114,
3737
+ "character": 21
3738
+ },
3739
+ "name": "boolean"
3740
+ },
3741
+ "isOptional": true,
3742
+ "isSpread": false
3743
+ },
3744
+ {
3745
+ "__schema": "ParameterSchema",
3746
+ "location": {
3747
+ "filePath": "schema.main.runtime.ts",
3748
+ "line": 115,
3749
+ "character": 5
3750
+ },
3751
+ "name": "schemaTransformers",
3752
+ "type": {
3753
+ "__schema": "TypeArraySchema",
3754
+ "location": {
3755
+ "filePath": "schema.main.runtime.ts",
3756
+ "line": 115,
3757
+ "character": 26
3758
+ },
3759
+ "type": {
3760
+ "__schema": "TypeRefSchema",
3761
+ "location": {
3762
+ "filePath": "schema.main.runtime.ts",
3763
+ "line": 115,
3764
+ "character": 26
3765
+ },
3766
+ "name": "SchemaTransformer",
3767
+ "componentId": {
3768
+ "scope": "teambit.typescript",
3769
+ "name": "typescript"
3770
+ }
3771
+ }
3772
+ },
3773
+ "isOptional": true,
3774
+ "isSpread": false
3775
+ },
3776
+ {
3777
+ "__schema": "ParameterSchema",
3778
+ "location": {
3779
+ "filePath": "schema.main.runtime.ts",
3780
+ "line": 116,
3781
+ "character": 5
3782
+ },
3783
+ "name": "apiTransformers",
3784
+ "type": {
3785
+ "__schema": "TypeArraySchema",
3786
+ "location": {
3787
+ "filePath": "schema.main.runtime.ts",
3788
+ "line": 116,
3789
+ "character": 23
3790
+ },
3791
+ "type": {
3792
+ "__schema": "TypeRefSchema",
3793
+ "location": {
3794
+ "filePath": "schema.main.runtime.ts",
3795
+ "line": 116,
3796
+ "character": 23
3797
+ },
3798
+ "name": "SchemaNodeTransformer",
3799
+ "componentId": {
3800
+ "scope": "teambit.typescript",
3801
+ "name": "typescript"
3802
+ }
3803
+ }
3804
+ },
3805
+ "isOptional": true,
3806
+ "isSpread": false
3807
+ }
3808
+ ],
3809
+ "returnType": {
3810
+ "__schema": "TypeRefSchema",
3811
+ "location": {
3812
+ "filePath": "schema.main.runtime.ts",
3813
+ "line": 117,
3814
+ "character": 6
3815
+ },
3816
+ "name": "Promise",
3817
+ "typeArgs": [
3818
+ {
3819
+ "__schema": "TypeRefSchema",
3820
+ "location": {
3821
+ "filePath": "schema.main.runtime.ts",
3822
+ "line": 117,
3823
+ "character": 14
3824
+ },
3825
+ "name": "APISchema",
3826
+ "componentId": {
3827
+ "scope": "teambit.semantics",
3828
+ "name": "entities/semantic-schema",
3829
+ "version": "0.0.69"
3830
+ }
3831
+ }
3832
+ ]
3833
+ },
3834
+ "modifiers": [
3835
+ "async"
3836
+ ]
3837
+ },
3838
+ {
3839
+ "__schema": "FunctionLikeSchema",
3840
+ "location": {
3841
+ "filePath": "schema.main.runtime.ts",
3842
+ "line": 180,
3843
+ "character": 3
3844
+ },
3845
+ "signature": "(method) SchemaMain.getSchemaFromObject(obj: Record<string, any>): APISchema",
3846
+ "name": "getSchemaFromObject",
3847
+ "params": [
3848
+ {
3849
+ "__schema": "ParameterSchema",
3850
+ "location": {
3851
+ "filePath": "schema.main.runtime.ts",
3852
+ "line": 180,
3853
+ "character": 23
3854
+ },
3855
+ "name": "obj",
3856
+ "type": {
3857
+ "__schema": "TypeRefSchema",
3858
+ "location": {
3859
+ "filePath": "schema.main.runtime.ts",
3860
+ "line": 180,
3861
+ "character": 28
3862
+ },
3863
+ "name": "Record",
3864
+ "typeArgs": [
3865
+ {
3866
+ "__schema": "KeywordTypeSchema",
3867
+ "location": {
3868
+ "filePath": "schema.main.runtime.ts",
3869
+ "line": 180,
3870
+ "character": 35
3871
+ },
3872
+ "name": "string"
3873
+ },
3874
+ {
3875
+ "__schema": "KeywordTypeSchema",
3876
+ "location": {
3877
+ "filePath": "schema.main.runtime.ts",
3878
+ "line": 180,
3879
+ "character": 43
3880
+ },
3881
+ "name": "any"
3882
+ }
3883
+ ]
3884
+ },
3885
+ "isOptional": false,
3886
+ "isSpread": false
3887
+ }
3888
+ ],
3889
+ "returnType": {
3890
+ "__schema": "TypeRefSchema",
3891
+ "location": {
3892
+ "filePath": "schema.main.runtime.ts",
3893
+ "line": 180,
3894
+ "character": 3
3895
+ },
3896
+ "name": "APISchema",
3897
+ "componentId": {
3898
+ "scope": "teambit.semantics",
3899
+ "name": "entities/semantic-schema",
3900
+ "version": "0.0.69"
3901
+ }
3902
+ },
3903
+ "modifiers": []
3904
+ },
3905
+ {
3906
+ "__schema": "FunctionLikeSchema",
3907
+ "location": {
3908
+ "filePath": "schema.main.runtime.ts",
3909
+ "line": 187,
3910
+ "character": 3
3911
+ },
3912
+ "doc": {
3913
+ "__schema": "DocSchema",
3914
+ "location": {
3915
+ "filePath": "schema.main.runtime.ts",
3916
+ "line": 184,
3917
+ "character": 3
3918
+ },
3919
+ "raw": "/**\n * register a new parser.\n */",
3920
+ "comment": "register a new parser."
3921
+ },
3922
+ "signature": "(method) SchemaMain.registerParser(parser: Parser): SchemaMain",
3923
+ "name": "registerParser",
3924
+ "params": [
3925
+ {
3926
+ "__schema": "ParameterSchema",
3927
+ "location": {
3928
+ "filePath": "schema.main.runtime.ts",
3929
+ "line": 187,
3930
+ "character": 18
3931
+ },
3932
+ "name": "parser",
3933
+ "type": {
3934
+ "__schema": "TypeRefSchema",
3935
+ "location": {
3936
+ "filePath": "schema.main.runtime.ts",
3937
+ "line": 187,
3938
+ "character": 26
3939
+ },
3940
+ "name": "Parser"
3941
+ },
3942
+ "isOptional": false,
3943
+ "isSpread": false
3944
+ }
3945
+ ],
3946
+ "returnType": {
3947
+ "__schema": "TypeRefSchema",
3948
+ "location": {
3949
+ "filePath": "schema.main.runtime.ts",
3950
+ "line": 187,
3951
+ "character": 3
3952
+ },
3953
+ "name": "SchemaMain"
3954
+ },
3955
+ "modifiers": []
3956
+ },
3957
+ {
3958
+ "__schema": "FunctionLikeSchema",
3959
+ "location": {
3960
+ "filePath": "schema.main.runtime.ts",
3961
+ "line": 192,
3962
+ "character": 3
3963
+ },
3964
+ "signature": "(method) SchemaMain.calcSchemaData(): Promise<{\n disabled?: boolean;\n}>",
3965
+ "name": "calcSchemaData",
3966
+ "params": [],
3967
+ "returnType": {
3968
+ "__schema": "TypeRefSchema",
3969
+ "location": {
3970
+ "filePath": "schema.main.runtime.ts",
3971
+ "line": 192,
3972
+ "character": 27
3973
+ },
3974
+ "name": "Promise",
3975
+ "typeArgs": [
3976
+ {
3977
+ "__schema": "TypeLiteralSchema",
3978
+ "location": {
3979
+ "filePath": "schema.main.runtime.ts",
3980
+ "line": 192,
3981
+ "character": 35
3982
+ },
3983
+ "members": [
3984
+ {
3985
+ "__schema": "VariableLikeSchema",
3986
+ "location": {
3987
+ "filePath": "schema.main.runtime.ts",
3988
+ "line": 192,
3989
+ "character": 37
3990
+ },
3991
+ "signature": "(property) disabled?: boolean | undefined",
3992
+ "name": "disabled",
3993
+ "type": {
3994
+ "__schema": "KeywordTypeSchema",
3995
+ "location": {
3996
+ "filePath": "schema.main.runtime.ts",
3997
+ "line": 192,
3998
+ "character": 48
3999
+ },
4000
+ "name": "boolean"
4001
+ },
4002
+ "isOptional": true
4003
+ }
4004
+ ]
4005
+ }
4006
+ ]
4007
+ },
4008
+ "modifiers": [
4009
+ "async"
4010
+ ]
4011
+ },
4012
+ {
4013
+ "__schema": "FunctionLikeSchema",
4014
+ "location": {
4015
+ "filePath": "schema.main.runtime.ts",
4016
+ "line": 198,
4017
+ "character": 3
4018
+ },
4019
+ "signature": "(method) SchemaMain.getSchemaData(component: Component): {\n [key: string]: any;\n} | undefined",
4020
+ "name": "getSchemaData",
4021
+ "params": [
4022
+ {
4023
+ "__schema": "ParameterSchema",
4024
+ "location": {
4025
+ "filePath": "schema.main.runtime.ts",
4026
+ "line": 198,
4027
+ "character": 17
4028
+ },
4029
+ "name": "component",
4030
+ "type": {
4031
+ "__schema": "TypeRefSchema",
4032
+ "location": {
4033
+ "filePath": "schema.main.runtime.ts",
4034
+ "line": 198,
4035
+ "character": 28
4036
+ },
4037
+ "name": "Component",
4038
+ "componentId": {
4039
+ "scope": "teambit.component",
4040
+ "name": "component"
4041
+ }
4042
+ },
4043
+ "isOptional": false,
4044
+ "isSpread": false
4045
+ }
4046
+ ],
4047
+ "returnType": {
4048
+ "__schema": "InferenceTypeSchema",
4049
+ "location": {
4050
+ "filePath": "schema.main.runtime.ts",
4051
+ "line": 198,
4052
+ "character": 3
4053
+ },
4054
+ "type": "{\n [key: string]: any;\n} | undefined"
4055
+ },
4056
+ "modifiers": []
4057
+ },
4058
+ {
4059
+ "__schema": "FunctionLikeSchema",
4060
+ "location": {
4061
+ "filePath": "schema.main.runtime.ts",
4062
+ "line": 202,
4063
+ "character": 3
4064
+ },
4065
+ "signature": "(method) SchemaMain.isSchemaTaskDisabled(component: Component): any",
4066
+ "name": "isSchemaTaskDisabled",
4067
+ "params": [
4068
+ {
4069
+ "__schema": "ParameterSchema",
4070
+ "location": {
4071
+ "filePath": "schema.main.runtime.ts",
4072
+ "line": 202,
4073
+ "character": 24
4074
+ },
4075
+ "name": "component",
4076
+ "type": {
4077
+ "__schema": "TypeRefSchema",
4078
+ "location": {
4079
+ "filePath": "schema.main.runtime.ts",
4080
+ "line": 202,
4081
+ "character": 35
4082
+ },
4083
+ "name": "Component",
4084
+ "componentId": {
4085
+ "scope": "teambit.component",
4086
+ "name": "component"
4087
+ }
4088
+ },
4089
+ "isOptional": false,
4090
+ "isSpread": false
4091
+ }
4092
+ ],
4093
+ "returnType": {
4094
+ "__schema": "InferenceTypeSchema",
4095
+ "location": {
4096
+ "filePath": "schema.main.runtime.ts",
4097
+ "line": 202,
4098
+ "character": 3
4099
+ },
4100
+ "type": "any"
4101
+ },
4102
+ "modifiers": []
4103
+ },
4104
+ {
4105
+ "__schema": "VariableLikeSchema",
4106
+ "location": {
4107
+ "filePath": "schema.main.runtime.ts",
4108
+ "line": 206,
4109
+ "character": 3
4110
+ },
4111
+ "signature": "(property) SchemaMain.runtime: RuntimeDefinition",
4112
+ "name": "runtime",
4113
+ "type": {
4114
+ "__schema": "InferenceTypeSchema",
4115
+ "location": {
4116
+ "filePath": "schema.main.runtime.ts",
4117
+ "line": 206,
4118
+ "character": 3
4119
+ },
4120
+ "type": "RuntimeDefinition"
4121
+ },
4122
+ "isOptional": true,
4123
+ "defaultValue": "MainRuntime"
4124
+ },
4125
+ {
4126
+ "__schema": "VariableLikeSchema",
4127
+ "location": {
4128
+ "filePath": "schema.main.runtime.ts",
4129
+ "line": 207,
4130
+ "character": 3
4131
+ },
4132
+ "signature": "(property) SchemaMain.dependencies: Aspect[]",
4133
+ "name": "dependencies",
4134
+ "type": {
4135
+ "__schema": "InferenceTypeSchema",
4136
+ "location": {
4137
+ "filePath": "schema.main.runtime.ts",
4138
+ "line": 207,
4139
+ "character": 3
4140
+ },
4141
+ "type": "Aspect[]"
4142
+ },
4143
+ "isOptional": true,
4144
+ "defaultValue": "[\n EnvsAspect,\n CLIAspect,\n ComponentAspect,\n GraphqlAspect,\n LoggerAspect,\n BuilderAspect,\n WorkspaceAspect,\n ScopeAspect,\n ]"
4145
+ },
4146
+ {
4147
+ "__schema": "VariableLikeSchema",
4148
+ "location": {
4149
+ "filePath": "schema.main.runtime.ts",
4150
+ "line": 217,
4151
+ "character": 3
4152
+ },
4153
+ "signature": "(property) SchemaMain.slots: ((registerFn: () => string) => SlotRegistry<Parser>)[]",
4154
+ "name": "slots",
4155
+ "type": {
4156
+ "__schema": "InferenceTypeSchema",
4157
+ "location": {
4158
+ "filePath": "schema.main.runtime.ts",
4159
+ "line": 217,
4160
+ "character": 3
4161
+ },
4162
+ "type": "((registerFn: () => string) => SlotRegistry<Parser>)[]"
4163
+ },
4164
+ "isOptional": true,
4165
+ "defaultValue": "[Slot.withType<Parser>()]"
4166
+ },
4167
+ {
4168
+ "__schema": "VariableLikeSchema",
4169
+ "location": {
4170
+ "filePath": "schema.main.runtime.ts",
4171
+ "line": 219,
4172
+ "character": 3
4173
+ },
4174
+ "signature": "(property) SchemaMain.defaultConfig: {\n defaultParser: string;\n disabled: boolean;\n}",
4175
+ "name": "defaultConfig",
4176
+ "type": {
4177
+ "__schema": "InferenceTypeSchema",
4178
+ "location": {
4179
+ "filePath": "schema.main.runtime.ts",
4180
+ "line": 219,
4181
+ "character": 3
4182
+ },
4183
+ "type": "{\n defaultParser: string;\n disabled: boolean;\n}"
4184
+ },
4185
+ "isOptional": true,
4186
+ "defaultValue": "{\n defaultParser: 'teambit.typescript/typescript',\n disabled: false,\n }"
4187
+ },
4188
+ {
4189
+ "__schema": "FunctionLikeSchema",
4190
+ "location": {
4191
+ "filePath": "schema.main.runtime.ts",
4192
+ "line": 224,
4193
+ "character": 3
4194
+ },
4195
+ "signature": "(method) SchemaMain.provider([envs, cli, component, graphql, loggerMain, builder, workspace, scope]: [\n EnvsMain,\n CLIMain,\n ComponentMain,\n GraphqlMain,\n LoggerMain,\n BuilderMain,\n Workspace,\n ScopeMain\n], config: SchemaConfig, [parserSlot]: [ParserSlot]): Promise<SchemaMain>",
4196
+ "name": "provider",
4197
+ "params": [
4198
+ {
4199
+ "__schema": "ParameterSchema",
4200
+ "location": {
4201
+ "filePath": "schema.main.runtime.ts",
4202
+ "line": 225,
4203
+ "character": 5
4204
+ },
4205
+ "name": "[ envs, cli, component, graphql, loggerMain, builder, workspace, scope ]",
4206
+ "type": {
4207
+ "__schema": "TupleTypeSchema",
4208
+ "location": {
4209
+ "filePath": "schema.main.runtime.ts",
4210
+ "line": 225,
4211
+ "character": 77
4212
+ },
4213
+ "elements": [
4214
+ {
4215
+ "__schema": "TypeRefSchema",
4216
+ "location": {
4217
+ "filePath": "schema.main.runtime.ts",
4218
+ "line": 226,
4219
+ "character": 7
4220
+ },
4221
+ "name": "EnvsMain",
4222
+ "componentId": {
4223
+ "scope": "teambit.envs",
4224
+ "name": "envs"
4225
+ }
4226
+ },
4227
+ {
4228
+ "__schema": "TypeRefSchema",
4229
+ "location": {
4230
+ "filePath": "schema.main.runtime.ts",
4231
+ "line": 227,
4232
+ "character": 7
4233
+ },
4234
+ "name": "CLIMain",
4235
+ "componentId": {
4236
+ "scope": "teambit.harmony",
4237
+ "name": "cli"
4238
+ }
4239
+ },
4240
+ {
4241
+ "__schema": "TypeRefSchema",
4242
+ "location": {
4243
+ "filePath": "schema.main.runtime.ts",
4244
+ "line": 228,
4245
+ "character": 7
4246
+ },
4247
+ "name": "ComponentMain",
4248
+ "componentId": {
4249
+ "scope": "teambit.component",
4250
+ "name": "component"
4251
+ }
4252
+ },
4253
+ {
4254
+ "__schema": "TypeRefSchema",
4255
+ "location": {
4256
+ "filePath": "schema.main.runtime.ts",
4257
+ "line": 229,
4258
+ "character": 7
4259
+ },
4260
+ "name": "GraphqlMain",
4261
+ "componentId": {
4262
+ "scope": "teambit.harmony",
4263
+ "name": "graphql"
4264
+ }
4265
+ },
4266
+ {
4267
+ "__schema": "TypeRefSchema",
4268
+ "location": {
4269
+ "filePath": "schema.main.runtime.ts",
4270
+ "line": 230,
4271
+ "character": 7
4272
+ },
4273
+ "name": "LoggerMain",
4274
+ "componentId": {
4275
+ "scope": "teambit.harmony",
4276
+ "name": "logger"
4277
+ }
4278
+ },
4279
+ {
4280
+ "__schema": "TypeRefSchema",
4281
+ "location": {
4282
+ "filePath": "schema.main.runtime.ts",
4283
+ "line": 231,
4284
+ "character": 7
4285
+ },
4286
+ "name": "BuilderMain",
4287
+ "componentId": {
4288
+ "scope": "teambit.pipelines",
4289
+ "name": "builder"
4290
+ }
4291
+ },
4292
+ {
4293
+ "__schema": "TypeRefSchema",
4294
+ "location": {
4295
+ "filePath": "schema.main.runtime.ts",
4296
+ "line": 232,
4297
+ "character": 7
4298
+ },
4299
+ "name": "Workspace",
4300
+ "componentId": {
4301
+ "scope": "teambit.workspace",
4302
+ "name": "workspace"
4303
+ }
4304
+ },
4305
+ {
4306
+ "__schema": "TypeRefSchema",
4307
+ "location": {
4308
+ "filePath": "schema.main.runtime.ts",
4309
+ "line": 233,
4310
+ "character": 7
4311
+ },
4312
+ "name": "ScopeMain",
4313
+ "componentId": {
4314
+ "scope": "teambit.scope",
4315
+ "name": "scope"
4316
+ }
4317
+ }
4318
+ ]
4319
+ },
4320
+ "isOptional": false,
4321
+ "isSpread": false
4322
+ },
4323
+ {
4324
+ "__schema": "ParameterSchema",
4325
+ "location": {
4326
+ "filePath": "schema.main.runtime.ts",
4327
+ "line": 235,
4328
+ "character": 5
4329
+ },
4330
+ "name": "config",
4331
+ "type": {
4332
+ "__schema": "TypeRefSchema",
4333
+ "location": {
4334
+ "filePath": "schema.main.runtime.ts",
4335
+ "line": 235,
4336
+ "character": 13
4337
+ },
4338
+ "name": "SchemaConfig",
4339
+ "internalFilePath": "schema.main.runtime.ts"
4340
+ },
4341
+ "isOptional": false,
4342
+ "isSpread": false
4343
+ },
4344
+ {
4345
+ "__schema": "ParameterSchema",
4346
+ "location": {
4347
+ "filePath": "schema.main.runtime.ts",
4348
+ "line": 236,
4349
+ "character": 5
4350
+ },
4351
+ "name": "[ parserSlot ]",
4352
+ "type": {
4353
+ "__schema": "TupleTypeSchema",
4354
+ "location": {
4355
+ "filePath": "schema.main.runtime.ts",
4356
+ "line": 236,
4357
+ "character": 19
4358
+ },
4359
+ "elements": [
4360
+ {
4361
+ "__schema": "TypeRefSchema",
4362
+ "location": {
4363
+ "filePath": "schema.main.runtime.ts",
4364
+ "line": 236,
4365
+ "character": 20
4366
+ },
4367
+ "name": "ParserSlot",
4368
+ "internalFilePath": "schema.main.runtime.ts"
4369
+ }
4370
+ ]
4371
+ },
4372
+ "isOptional": false,
4373
+ "isSpread": false
4374
+ }
4375
+ ],
4376
+ "returnType": {
4377
+ "__schema": "InferenceTypeSchema",
4378
+ "location": {
4379
+ "filePath": "schema.main.runtime.ts",
4380
+ "line": 224,
4381
+ "character": 3
4382
+ },
4383
+ "type": "Promise<SchemaMain>"
4384
+ },
4385
+ "modifiers": [
4386
+ "static",
4387
+ "async"
4388
+ ]
4389
+ }
4390
+ ],
4391
+ "extendsNodes": [],
4392
+ "implementNodes": []
4393
+ },
4394
+ {
4395
+ "__schema": "UnImplementedSchema",
4396
+ "location": {
4397
+ "filePath": "schema.main.runtime.ts",
4398
+ "line": 262,
4399
+ "character": 16
4400
+ },
4401
+ "name": "SchemaMain",
4402
+ "type": "Identifier"
4403
+ }
4404
+ ],
4405
+ "internals": [
4406
+ {
4407
+ "__schema": "UnImplementedSchema",
4408
+ "location": {
4409
+ "filePath": "schema.main.runtime.ts",
4410
+ "line": 260,
4411
+ "character": 1
4412
+ },
4413
+ "name": "SchemaAspect.addRuntime(SchemaMain);",
4414
+ "type": "ExpressionStatement"
4415
+ }
4416
+ ]
4417
+ },
4418
+ {
4419
+ "__schema": "ModuleSchema",
4420
+ "location": {
4421
+ "filePath": "schema.aspect.ts",
4422
+ "line": 1,
4423
+ "character": 1
4424
+ },
4425
+ "exports": [
4426
+ {
4427
+ "__schema": "VariableLikeSchema",
4428
+ "location": {
4429
+ "filePath": "schema.aspect.ts",
4430
+ "line": 3,
4431
+ "character": 14
4432
+ },
4433
+ "signature": "const SchemaAspect: Aspect",
4434
+ "name": "SchemaAspect",
4435
+ "type": {
4436
+ "__schema": "TypeRefSchema",
4437
+ "location": {
4438
+ "filePath": "schema.aspect.ts",
4439
+ "line": 3,
4440
+ "character": 14
4441
+ },
4442
+ "name": "Aspect",
4443
+ "componentId": {
4444
+ "scope": "teambit.harmony",
4445
+ "name": "harmony",
4446
+ "version": "0.4.6"
4447
+ }
4448
+ },
4449
+ "isOptional": false,
4450
+ "defaultValue": "Aspect.create({\n id: 'teambit.semantics/schema',\n})"
4451
+ }
4452
+ ],
4453
+ "internals": []
4454
+ }
4455
+ ],
228
4456
  "componentId": {
229
4457
  "scope": "teambit.semantics",
230
4458
  "name": "schema",
231
- "version": "1.0.258"
4459
+ "version": "1.0.259"
232
4460
  },
233
4461
  "taggedModuleExports": []
234
4462
  }