@teambit/schema 1.0.158 → 1.0.160

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