@teambit/schema 1.0.187 → 1.0.188

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