@teambit/schema 1.0.510 → 1.0.511

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