@teambit/schema 1.0.516 → 1.0.518

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