@teambit/express 0.0.1188 → 0.0.1190

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2221 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 15
22
+ },
23
+ "signature": "type RouteSlot = SlotRegistry<Route[]>",
24
+ "name": "RouteSlot",
25
+ "exportNode": {
26
+ "__schema": "TypeSchema",
27
+ "location": {
28
+ "filePath": "express.main.runtime.ts",
29
+ "line": 21,
30
+ "character": 1
31
+ },
32
+ "signature": "type RouteSlot = SlotRegistry<Route[]>",
33
+ "name": "RouteSlot",
34
+ "type": {
35
+ "__schema": "TypeRefSchema",
36
+ "location": {
37
+ "filePath": "express.main.runtime.ts",
38
+ "line": 21,
39
+ "character": 25
40
+ },
41
+ "name": "SlotRegistry",
42
+ "componentId": {
43
+ "scope": "teambit.harmony",
44
+ "name": "harmony",
45
+ "version": "0.4.6"
46
+ },
47
+ "typeArgs": [
48
+ {
49
+ "__schema": "TypeArraySchema",
50
+ "location": {
51
+ "filePath": "express.main.runtime.ts",
52
+ "line": 21,
53
+ "character": 38
54
+ },
55
+ "type": {
56
+ "__schema": "TypeRefSchema",
57
+ "location": {
58
+ "filePath": "express.main.runtime.ts",
59
+ "line": 21,
60
+ "character": 38
61
+ },
62
+ "name": "Route"
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "__schema": "ExportSchema",
71
+ "location": {
72
+ "filePath": "index.ts",
73
+ "line": 2,
74
+ "character": 15
75
+ },
76
+ "signature": "interface Route",
77
+ "name": "Route",
78
+ "exportNode": {
79
+ "__schema": "InterfaceSchema",
80
+ "location": {
81
+ "filePath": "types/route.ts",
82
+ "line": 19,
83
+ "character": 1
84
+ },
85
+ "doc": {
86
+ "__schema": "DocSchema",
87
+ "location": {
88
+ "filePath": "types/route.ts",
89
+ "line": 15,
90
+ "character": 1
91
+ },
92
+ "raw": "/**\n * express new Route\n */",
93
+ "comment": "express new Route",
94
+ "tags": []
95
+ },
96
+ "signature": "interface Route",
97
+ "name": "Route",
98
+ "members": [
99
+ {
100
+ "__schema": "VariableLikeSchema",
101
+ "location": {
102
+ "filePath": "types/route.ts",
103
+ "line": 20,
104
+ "character": 3
105
+ },
106
+ "signature": "(property) Route.method: string",
107
+ "name": "method",
108
+ "type": {
109
+ "__schema": "KeywordTypeSchema",
110
+ "location": {
111
+ "filePath": "types/route.ts",
112
+ "line": 20,
113
+ "character": 11
114
+ },
115
+ "name": "string"
116
+ },
117
+ "isOptional": false
118
+ },
119
+ {
120
+ "__schema": "VariableLikeSchema",
121
+ "location": {
122
+ "filePath": "types/route.ts",
123
+ "line": 21,
124
+ "character": 3
125
+ },
126
+ "signature": "(property) Route.route: string | RegExp",
127
+ "name": "route",
128
+ "type": {
129
+ "__schema": "TypeUnionSchema",
130
+ "location": {
131
+ "filePath": "types/route.ts",
132
+ "line": 21,
133
+ "character": 10
134
+ },
135
+ "types": [
136
+ {
137
+ "__schema": "KeywordTypeSchema",
138
+ "location": {
139
+ "filePath": "types/route.ts",
140
+ "line": 21,
141
+ "character": 10
142
+ },
143
+ "name": "string"
144
+ },
145
+ {
146
+ "__schema": "TypeRefSchema",
147
+ "location": {
148
+ "filePath": "types/route.ts",
149
+ "line": 21,
150
+ "character": 19
151
+ },
152
+ "name": "RegExp"
153
+ }
154
+ ]
155
+ },
156
+ "isOptional": false
157
+ },
158
+ {
159
+ "__schema": "VariableLikeSchema",
160
+ "location": {
161
+ "filePath": "types/route.ts",
162
+ "line": 22,
163
+ "character": 3
164
+ },
165
+ "signature": "(property) Route.disableNamespace?: boolean | undefined",
166
+ "name": "disableNamespace",
167
+ "type": {
168
+ "__schema": "KeywordTypeSchema",
169
+ "location": {
170
+ "filePath": "types/route.ts",
171
+ "line": 22,
172
+ "character": 22
173
+ },
174
+ "name": "boolean"
175
+ },
176
+ "isOptional": true
177
+ },
178
+ {
179
+ "__schema": "VariableLikeSchema",
180
+ "location": {
181
+ "filePath": "types/route.ts",
182
+ "line": 23,
183
+ "character": 3
184
+ },
185
+ "signature": "(property) Route.verb?: Verb | undefined",
186
+ "name": "verb",
187
+ "type": {
188
+ "__schema": "TypeRefSchema",
189
+ "location": {
190
+ "filePath": "types/route.ts",
191
+ "line": 23,
192
+ "character": 10
193
+ },
194
+ "name": "Verb"
195
+ },
196
+ "isOptional": true
197
+ },
198
+ {
199
+ "__schema": "VariableLikeSchema",
200
+ "location": {
201
+ "filePath": "types/route.ts",
202
+ "line": 24,
203
+ "character": 3
204
+ },
205
+ "signature": "(property) Route.middlewares: Middleware[]",
206
+ "name": "middlewares",
207
+ "type": {
208
+ "__schema": "TypeArraySchema",
209
+ "location": {
210
+ "filePath": "types/route.ts",
211
+ "line": 24,
212
+ "character": 16
213
+ },
214
+ "type": {
215
+ "__schema": "TypeRefSchema",
216
+ "location": {
217
+ "filePath": "types/route.ts",
218
+ "line": 24,
219
+ "character": 16
220
+ },
221
+ "name": "Middleware"
222
+ }
223
+ },
224
+ "isOptional": false
225
+ },
226
+ {
227
+ "__schema": "VariableLikeSchema",
228
+ "location": {
229
+ "filePath": "types/route.ts",
230
+ "line": 26,
231
+ "character": 3
232
+ },
233
+ "doc": {
234
+ "__schema": "DocSchema",
235
+ "location": {
236
+ "filePath": "types/route.ts",
237
+ "line": 25,
238
+ "character": 3
239
+ },
240
+ "raw": "/** route priority if 2 route with the same name default is 0 */",
241
+ "comment": "route priority if 2 route with the same name default is 0",
242
+ "tags": []
243
+ },
244
+ "signature": "(property) Route.priority?: number | undefined",
245
+ "name": "priority",
246
+ "type": {
247
+ "__schema": "KeywordTypeSchema",
248
+ "location": {
249
+ "filePath": "types/route.ts",
250
+ "line": 26,
251
+ "character": 14
252
+ },
253
+ "name": "number"
254
+ },
255
+ "isOptional": true
256
+ }
257
+ ],
258
+ "extendsNodes": []
259
+ }
260
+ },
261
+ {
262
+ "__schema": "ExportSchema",
263
+ "location": {
264
+ "filePath": "index.ts",
265
+ "line": 3,
266
+ "character": 10
267
+ },
268
+ "signature": "enum Verb",
269
+ "name": "Verb",
270
+ "exportNode": {
271
+ "__schema": "EnumSchema",
272
+ "location": {
273
+ "filePath": "types/route.ts",
274
+ "line": 10,
275
+ "character": 1
276
+ },
277
+ "signature": "enum Verb",
278
+ "name": "Verb",
279
+ "members": [
280
+ {
281
+ "__schema": "EnumMemberSchema",
282
+ "location": {
283
+ "filePath": "types/route.ts",
284
+ "line": 11,
285
+ "character": 3
286
+ },
287
+ "signature": "(enum member) Verb.WRITE = \"write\"",
288
+ "name": "WRITE",
289
+ "value": "'write'"
290
+ },
291
+ {
292
+ "__schema": "EnumMemberSchema",
293
+ "location": {
294
+ "filePath": "types/route.ts",
295
+ "line": 12,
296
+ "character": 3
297
+ },
298
+ "signature": "(enum member) Verb.READ = \"read\"",
299
+ "name": "READ",
300
+ "value": "'read'"
301
+ }
302
+ ]
303
+ }
304
+ },
305
+ {
306
+ "__schema": "ExportSchema",
307
+ "location": {
308
+ "filePath": "index.ts",
309
+ "line": 4,
310
+ "character": 15
311
+ },
312
+ "signature": "export { Request };\n\nRequest",
313
+ "name": "Request",
314
+ "exportNode": {
315
+ "__schema": "TypeRefSchema",
316
+ "location": {
317
+ "filePath": "index.ts",
318
+ "line": 4,
319
+ "character": 15
320
+ },
321
+ "name": "Request"
322
+ }
323
+ },
324
+ {
325
+ "__schema": "ExportSchema",
326
+ "location": {
327
+ "filePath": "index.ts",
328
+ "line": 4,
329
+ "character": 24
330
+ },
331
+ "signature": "type Response = express.Response<any, Record<string, any>>",
332
+ "name": "Response",
333
+ "exportNode": {
334
+ "__schema": "TypeSchema",
335
+ "location": {
336
+ "filePath": "types/response.ts",
337
+ "line": 3,
338
+ "character": 1
339
+ },
340
+ "signature": "type Response = express.Response<any, Record<string, any>>",
341
+ "name": "Response",
342
+ "type": {
343
+ "__schema": "TypeIntersectionSchema",
344
+ "location": {
345
+ "filePath": "types/response.ts",
346
+ "line": 3,
347
+ "character": 24
348
+ },
349
+ "types": [
350
+ {
351
+ "__schema": "TypeLiteralSchema",
352
+ "location": {
353
+ "filePath": "types/response.ts",
354
+ "line": 3,
355
+ "character": 24
356
+ },
357
+ "members": []
358
+ },
359
+ {
360
+ "__schema": "TypeRefSchema",
361
+ "location": {
362
+ "filePath": "types/response.ts",
363
+ "line": 3,
364
+ "character": 29
365
+ },
366
+ "name": "express.Response"
367
+ }
368
+ ]
369
+ }
370
+ }
371
+ },
372
+ {
373
+ "__schema": "ExportSchema",
374
+ "location": {
375
+ "filePath": "index.ts",
376
+ "line": 4,
377
+ "character": 34
378
+ },
379
+ "signature": "type NextFunction = express.NextFunction",
380
+ "name": "NextFunction",
381
+ "exportNode": {
382
+ "__schema": "TypeSchema",
383
+ "location": {
384
+ "filePath": "types/next.ts",
385
+ "line": 3,
386
+ "character": 1
387
+ },
388
+ "signature": "type NextFunction = express.NextFunction",
389
+ "name": "NextFunction",
390
+ "type": {
391
+ "__schema": "TypeRefSchema",
392
+ "location": {
393
+ "filePath": "types/next.ts",
394
+ "line": 3,
395
+ "character": 28
396
+ },
397
+ "name": "express.NextFunction"
398
+ }
399
+ }
400
+ },
401
+ {
402
+ "__schema": "ExportSchema",
403
+ "location": {
404
+ "filePath": "index.ts",
405
+ "line": 4,
406
+ "character": 48
407
+ },
408
+ "signature": "type Middleware = (req: Request, res: Response, next: NextFunction) => void | Promise<any>",
409
+ "name": "Middleware",
410
+ "exportNode": {
411
+ "__schema": "TypeSchema",
412
+ "location": {
413
+ "filePath": "types/route.ts",
414
+ "line": 8,
415
+ "character": 1
416
+ },
417
+ "doc": {
418
+ "__schema": "DocSchema",
419
+ "location": {
420
+ "filePath": "types/route.ts",
421
+ "line": 5,
422
+ "character": 1
423
+ },
424
+ "raw": "/**\n * define express Middleware\n */",
425
+ "comment": "define express Middleware",
426
+ "tags": []
427
+ },
428
+ "signature": "type Middleware = (req: Request, res: Response, next: NextFunction) => void | Promise<any>",
429
+ "name": "Middleware",
430
+ "type": {
431
+ "__schema": "FunctionLikeSchema",
432
+ "location": {
433
+ "filePath": "types/route.ts",
434
+ "line": 8,
435
+ "character": 26
436
+ },
437
+ "signature": "(req: Request, res: Response, next: NextFunction): void | Promise<any>",
438
+ "name": "",
439
+ "params": [
440
+ {
441
+ "__schema": "ParameterSchema",
442
+ "location": {
443
+ "filePath": "types/route.ts",
444
+ "line": 8,
445
+ "character": 27
446
+ },
447
+ "name": "req",
448
+ "type": {
449
+ "__schema": "TypeRefSchema",
450
+ "location": {
451
+ "filePath": "types/route.ts",
452
+ "line": 8,
453
+ "character": 32
454
+ },
455
+ "name": "Request"
456
+ },
457
+ "isOptional": false,
458
+ "isSpread": false
459
+ },
460
+ {
461
+ "__schema": "ParameterSchema",
462
+ "location": {
463
+ "filePath": "types/route.ts",
464
+ "line": 8,
465
+ "character": 41
466
+ },
467
+ "name": "res",
468
+ "type": {
469
+ "__schema": "TypeRefSchema",
470
+ "location": {
471
+ "filePath": "types/route.ts",
472
+ "line": 8,
473
+ "character": 46
474
+ },
475
+ "name": "Response"
476
+ },
477
+ "isOptional": false,
478
+ "isSpread": false
479
+ },
480
+ {
481
+ "__schema": "ParameterSchema",
482
+ "location": {
483
+ "filePath": "types/route.ts",
484
+ "line": 8,
485
+ "character": 56
486
+ },
487
+ "name": "next",
488
+ "type": {
489
+ "__schema": "TypeRefSchema",
490
+ "location": {
491
+ "filePath": "types/route.ts",
492
+ "line": 8,
493
+ "character": 62
494
+ },
495
+ "name": "NextFunction"
496
+ },
497
+ "isOptional": false,
498
+ "isSpread": false
499
+ }
500
+ ],
501
+ "returnType": {
502
+ "__schema": "TypeUnionSchema",
503
+ "location": {
504
+ "filePath": "types/route.ts",
505
+ "line": 8,
506
+ "character": 79
507
+ },
508
+ "types": [
509
+ {
510
+ "__schema": "KeywordTypeSchema",
511
+ "location": {
512
+ "filePath": "types/route.ts",
513
+ "line": 8,
514
+ "character": 79
515
+ },
516
+ "name": "void"
517
+ },
518
+ {
519
+ "__schema": "TypeRefSchema",
520
+ "location": {
521
+ "filePath": "types/route.ts",
522
+ "line": 8,
523
+ "character": 86
524
+ },
525
+ "name": "Promise",
526
+ "typeArgs": [
527
+ {
528
+ "__schema": "KeywordTypeSchema",
529
+ "location": {
530
+ "filePath": "types/route.ts",
531
+ "line": 8,
532
+ "character": 94
533
+ },
534
+ "name": "any"
535
+ }
536
+ ]
537
+ }
538
+ ]
539
+ },
540
+ "modifiers": []
541
+ }
542
+ }
543
+ },
544
+ {
545
+ "__schema": "ExportSchema",
546
+ "location": {
547
+ "filePath": "index.ts",
548
+ "line": 5,
549
+ "character": 15
550
+ },
551
+ "signature": "interface MiddlewareManifest",
552
+ "name": "MiddlewareManifest",
553
+ "exportNode": {
554
+ "__schema": "InterfaceSchema",
555
+ "location": {
556
+ "filePath": "middleware-manifest.ts",
557
+ "line": 3,
558
+ "character": 1
559
+ },
560
+ "signature": "interface MiddlewareManifest",
561
+ "name": "MiddlewareManifest",
562
+ "members": [
563
+ {
564
+ "__schema": "VariableLikeSchema",
565
+ "location": {
566
+ "filePath": "middleware-manifest.ts",
567
+ "line": 4,
568
+ "character": 3
569
+ },
570
+ "signature": "(property) MiddlewareManifest.route?: string | undefined",
571
+ "name": "route",
572
+ "type": {
573
+ "__schema": "KeywordTypeSchema",
574
+ "location": {
575
+ "filePath": "middleware-manifest.ts",
576
+ "line": 4,
577
+ "character": 11
578
+ },
579
+ "name": "string"
580
+ },
581
+ "isOptional": true
582
+ },
583
+ {
584
+ "__schema": "VariableLikeSchema",
585
+ "location": {
586
+ "filePath": "middleware-manifest.ts",
587
+ "line": 5,
588
+ "character": 3
589
+ },
590
+ "signature": "(property) MiddlewareManifest.middleware: Middleware",
591
+ "name": "middleware",
592
+ "type": {
593
+ "__schema": "TypeRefSchema",
594
+ "location": {
595
+ "filePath": "middleware-manifest.ts",
596
+ "line": 5,
597
+ "character": 3
598
+ },
599
+ "name": "Middleware"
600
+ },
601
+ "isOptional": false
602
+ }
603
+ ],
604
+ "extendsNodes": []
605
+ }
606
+ },
607
+ {
608
+ "__schema": "ExportSchema",
609
+ "location": {
610
+ "filePath": "index.ts",
611
+ "line": 6,
612
+ "character": 15
613
+ },
614
+ "signature": "class ExpressMain",
615
+ "name": "ExpressMain",
616
+ "exportNode": {
617
+ "__schema": "ClassSchema",
618
+ "location": {
619
+ "filePath": "express.main.runtime.ts",
620
+ "line": 23,
621
+ "character": 1
622
+ },
623
+ "signature": "class ExpressMain",
624
+ "name": "ExpressMain",
625
+ "members": [
626
+ {
627
+ "__schema": "VariableLikeSchema",
628
+ "location": {
629
+ "filePath": "express.main.runtime.ts",
630
+ "line": 24,
631
+ "character": 3
632
+ },
633
+ "signature": "(property) ExpressMain.runtime: RuntimeDefinition",
634
+ "name": "runtime",
635
+ "type": {
636
+ "__schema": "InferenceTypeSchema",
637
+ "location": {
638
+ "filePath": "express.main.runtime.ts",
639
+ "line": 24,
640
+ "character": 3
641
+ },
642
+ "type": "RuntimeDefinition"
643
+ },
644
+ "isOptional": true,
645
+ "defaultValue": "MainRuntime"
646
+ },
647
+ {
648
+ "__schema": "ConstructorSchema",
649
+ "location": {
650
+ "filePath": "express.main.runtime.ts",
651
+ "line": 26,
652
+ "character": 3
653
+ },
654
+ "signature": "constructor ExpressMain(config: ExpressConfig, moduleSlot: RouteSlot, logger: Logger, middlewareSlot: MiddlewareSlot): ExpressMain",
655
+ "name": "constructor",
656
+ "params": [
657
+ {
658
+ "__schema": "ParameterSchema",
659
+ "location": {
660
+ "filePath": "express.main.runtime.ts",
661
+ "line": 30,
662
+ "character": 5
663
+ },
664
+ "name": "config",
665
+ "type": {
666
+ "__schema": "TypeRefSchema",
667
+ "location": {
668
+ "filePath": "express.main.runtime.ts",
669
+ "line": 30,
670
+ "character": 22
671
+ },
672
+ "name": "ExpressConfig",
673
+ "internalFilePath": "express.main.runtime.ts"
674
+ },
675
+ "isOptional": false,
676
+ "isSpread": false
677
+ },
678
+ {
679
+ "__schema": "ParameterSchema",
680
+ "location": {
681
+ "filePath": "express.main.runtime.ts",
682
+ "line": 35,
683
+ "character": 5
684
+ },
685
+ "name": "moduleSlot",
686
+ "type": {
687
+ "__schema": "TypeRefSchema",
688
+ "location": {
689
+ "filePath": "express.main.runtime.ts",
690
+ "line": 35,
691
+ "character": 25
692
+ },
693
+ "name": "RouteSlot"
694
+ },
695
+ "isOptional": false,
696
+ "isSpread": false
697
+ },
698
+ {
699
+ "__schema": "ParameterSchema",
700
+ "location": {
701
+ "filePath": "express.main.runtime.ts",
702
+ "line": 40,
703
+ "character": 5
704
+ },
705
+ "name": "logger",
706
+ "type": {
707
+ "__schema": "TypeRefSchema",
708
+ "location": {
709
+ "filePath": "express.main.runtime.ts",
710
+ "line": 40,
711
+ "character": 22
712
+ },
713
+ "name": "Logger",
714
+ "componentId": {
715
+ "scope": "teambit.harmony",
716
+ "name": "logger"
717
+ }
718
+ },
719
+ "isOptional": false,
720
+ "isSpread": false
721
+ },
722
+ {
723
+ "__schema": "ParameterSchema",
724
+ "location": {
725
+ "filePath": "express.main.runtime.ts",
726
+ "line": 42,
727
+ "character": 5
728
+ },
729
+ "name": "middlewareSlot",
730
+ "type": {
731
+ "__schema": "TypeRefSchema",
732
+ "location": {
733
+ "filePath": "express.main.runtime.ts",
734
+ "line": 42,
735
+ "character": 30
736
+ },
737
+ "name": "MiddlewareSlot",
738
+ "internalFilePath": "express.main.runtime.ts"
739
+ },
740
+ "isOptional": false,
741
+ "isSpread": false
742
+ }
743
+ ],
744
+ "returnType": {
745
+ "__schema": "ThisTypeSchema",
746
+ "location": {
747
+ "filePath": "express.main.runtime.ts",
748
+ "line": 23,
749
+ "character": 1
750
+ },
751
+ "name": "ExpressMain"
752
+ },
753
+ "modifiers": []
754
+ },
755
+ {
756
+ "__schema": "FunctionLikeSchema",
757
+ "location": {
758
+ "filePath": "express.main.runtime.ts",
759
+ "line": 48,
760
+ "character": 3
761
+ },
762
+ "doc": {
763
+ "__schema": "DocSchema",
764
+ "location": {
765
+ "filePath": "express.main.runtime.ts",
766
+ "line": 45,
767
+ "character": 3
768
+ },
769
+ "raw": "/**\n * start an express server.\n */",
770
+ "comment": "start an express server.",
771
+ "tags": []
772
+ },
773
+ "signature": "(method) ExpressMain.listen(port?: number): Promise<Server>",
774
+ "name": "listen",
775
+ "params": [
776
+ {
777
+ "__schema": "ParameterSchema",
778
+ "location": {
779
+ "filePath": "express.main.runtime.ts",
780
+ "line": 48,
781
+ "character": 16
782
+ },
783
+ "name": "port",
784
+ "type": {
785
+ "__schema": "KeywordTypeSchema",
786
+ "location": {
787
+ "filePath": "express.main.runtime.ts",
788
+ "line": 48,
789
+ "character": 23
790
+ },
791
+ "name": "number"
792
+ },
793
+ "isOptional": true,
794
+ "isSpread": false
795
+ }
796
+ ],
797
+ "returnType": {
798
+ "__schema": "TypeRefSchema",
799
+ "location": {
800
+ "filePath": "express.main.runtime.ts",
801
+ "line": 48,
802
+ "character": 32
803
+ },
804
+ "name": "Promise",
805
+ "typeArgs": [
806
+ {
807
+ "__schema": "TypeRefSchema",
808
+ "location": {
809
+ "filePath": "express.main.runtime.ts",
810
+ "line": 48,
811
+ "character": 40
812
+ },
813
+ "name": "Server",
814
+ "packageName": "http"
815
+ }
816
+ ]
817
+ },
818
+ "modifiers": [
819
+ "async"
820
+ ]
821
+ },
822
+ {
823
+ "__schema": "FunctionLikeSchema",
824
+ "location": {
825
+ "filePath": "express.main.runtime.ts",
826
+ "line": 54,
827
+ "character": 3
828
+ },
829
+ "signature": "(method) ExpressMain.static(root: string, opts?: any): any",
830
+ "name": "static",
831
+ "params": [
832
+ {
833
+ "__schema": "ParameterSchema",
834
+ "location": {
835
+ "filePath": "express.main.runtime.ts",
836
+ "line": 54,
837
+ "character": 10
838
+ },
839
+ "name": "root",
840
+ "type": {
841
+ "__schema": "KeywordTypeSchema",
842
+ "location": {
843
+ "filePath": "express.main.runtime.ts",
844
+ "line": 54,
845
+ "character": 16
846
+ },
847
+ "name": "string"
848
+ },
849
+ "isOptional": false,
850
+ "isSpread": false
851
+ },
852
+ {
853
+ "__schema": "ParameterSchema",
854
+ "location": {
855
+ "filePath": "express.main.runtime.ts",
856
+ "line": 54,
857
+ "character": 24
858
+ },
859
+ "name": "opts",
860
+ "type": {
861
+ "__schema": "KeywordTypeSchema",
862
+ "location": {
863
+ "filePath": "express.main.runtime.ts",
864
+ "line": 54,
865
+ "character": 31
866
+ },
867
+ "name": "any"
868
+ },
869
+ "isOptional": true,
870
+ "isSpread": false
871
+ }
872
+ ],
873
+ "returnType": {
874
+ "__schema": "KeywordTypeSchema",
875
+ "location": {
876
+ "filePath": "express.main.runtime.ts",
877
+ "line": 54,
878
+ "character": 37
879
+ },
880
+ "name": "any"
881
+ },
882
+ "modifiers": []
883
+ },
884
+ {
885
+ "__schema": "FunctionLikeSchema",
886
+ "location": {
887
+ "filePath": "express.main.runtime.ts",
888
+ "line": 62,
889
+ "character": 3
890
+ },
891
+ "doc": {
892
+ "__schema": "DocSchema",
893
+ "location": {
894
+ "filePath": "express.main.runtime.ts",
895
+ "line": 58,
896
+ "character": 3
897
+ },
898
+ "raw": "/**\n * register a new express routes.\n * route will be added as `/api/${route}`\n */",
899
+ "comment": "register a new express routes.\nroute will be added as `/api/${route}`",
900
+ "tags": []
901
+ },
902
+ "signature": "(method) ExpressMain.register(routes: Route[]): this",
903
+ "name": "register",
904
+ "params": [
905
+ {
906
+ "__schema": "ParameterSchema",
907
+ "location": {
908
+ "filePath": "express.main.runtime.ts",
909
+ "line": 62,
910
+ "character": 12
911
+ },
912
+ "name": "routes",
913
+ "type": {
914
+ "__schema": "TypeArraySchema",
915
+ "location": {
916
+ "filePath": "express.main.runtime.ts",
917
+ "line": 62,
918
+ "character": 20
919
+ },
920
+ "type": {
921
+ "__schema": "TypeRefSchema",
922
+ "location": {
923
+ "filePath": "express.main.runtime.ts",
924
+ "line": 62,
925
+ "character": 20
926
+ },
927
+ "name": "Route"
928
+ }
929
+ },
930
+ "isOptional": false,
931
+ "isSpread": false
932
+ }
933
+ ],
934
+ "returnType": {
935
+ "__schema": "TypeRefSchema",
936
+ "location": {
937
+ "filePath": "express.main.runtime.ts",
938
+ "line": 62,
939
+ "character": 3
940
+ },
941
+ "name": "ExpressMain"
942
+ },
943
+ "modifiers": []
944
+ },
945
+ {
946
+ "__schema": "FunctionLikeSchema",
947
+ "location": {
948
+ "filePath": "express.main.runtime.ts",
949
+ "line": 70,
950
+ "character": 3
951
+ },
952
+ "doc": {
953
+ "__schema": "DocSchema",
954
+ "location": {
955
+ "filePath": "express.main.runtime.ts",
956
+ "line": 67,
957
+ "character": 3
958
+ },
959
+ "raw": "/**\n * register a new middleware into express.\n */",
960
+ "comment": "register a new middleware into express.",
961
+ "tags": []
962
+ },
963
+ "signature": "(method) ExpressMain.registerMiddleware(middlewares: MiddlewareManifest[]): this",
964
+ "name": "registerMiddleware",
965
+ "params": [
966
+ {
967
+ "__schema": "ParameterSchema",
968
+ "location": {
969
+ "filePath": "express.main.runtime.ts",
970
+ "line": 70,
971
+ "character": 22
972
+ },
973
+ "name": "middlewares",
974
+ "type": {
975
+ "__schema": "TypeArraySchema",
976
+ "location": {
977
+ "filePath": "express.main.runtime.ts",
978
+ "line": 70,
979
+ "character": 35
980
+ },
981
+ "type": {
982
+ "__schema": "TypeRefSchema",
983
+ "location": {
984
+ "filePath": "express.main.runtime.ts",
985
+ "line": 70,
986
+ "character": 35
987
+ },
988
+ "name": "MiddlewareManifest"
989
+ }
990
+ },
991
+ "isOptional": false,
992
+ "isSpread": false
993
+ }
994
+ ],
995
+ "returnType": {
996
+ "__schema": "TypeRefSchema",
997
+ "location": {
998
+ "filePath": "express.main.runtime.ts",
999
+ "line": 70,
1000
+ "character": 3
1001
+ },
1002
+ "name": "ExpressMain"
1003
+ },
1004
+ "modifiers": []
1005
+ },
1006
+ {
1007
+ "__schema": "FunctionLikeSchema",
1008
+ "location": {
1009
+ "filePath": "express.main.runtime.ts",
1010
+ "line": 89,
1011
+ "character": 3
1012
+ },
1013
+ "signature": "(method) ExpressMain.createApp(expressApp?: Express, options?: {\n disableBodyParser: true;\n}): Express",
1014
+ "name": "createApp",
1015
+ "params": [
1016
+ {
1017
+ "__schema": "ParameterSchema",
1018
+ "location": {
1019
+ "filePath": "express.main.runtime.ts",
1020
+ "line": 89,
1021
+ "character": 13
1022
+ },
1023
+ "name": "expressApp",
1024
+ "type": {
1025
+ "__schema": "TypeRefSchema",
1026
+ "location": {
1027
+ "filePath": "express.main.runtime.ts",
1028
+ "line": 89,
1029
+ "character": 26
1030
+ },
1031
+ "name": "Express",
1032
+ "packageName": "express"
1033
+ },
1034
+ "isOptional": true,
1035
+ "isSpread": false
1036
+ },
1037
+ {
1038
+ "__schema": "ParameterSchema",
1039
+ "location": {
1040
+ "filePath": "express.main.runtime.ts",
1041
+ "line": 89,
1042
+ "character": 35
1043
+ },
1044
+ "name": "options",
1045
+ "type": {
1046
+ "__schema": "TypeLiteralSchema",
1047
+ "location": {
1048
+ "filePath": "express.main.runtime.ts",
1049
+ "line": 89,
1050
+ "character": 45
1051
+ },
1052
+ "members": [
1053
+ {
1054
+ "__schema": "VariableLikeSchema",
1055
+ "location": {
1056
+ "filePath": "express.main.runtime.ts",
1057
+ "line": 89,
1058
+ "character": 47
1059
+ },
1060
+ "signature": "(property) disableBodyParser: true",
1061
+ "name": "disableBodyParser",
1062
+ "type": {
1063
+ "__schema": "LiteralTypeSchema",
1064
+ "location": {
1065
+ "filePath": "express.main.runtime.ts",
1066
+ "line": 89,
1067
+ "character": 66
1068
+ },
1069
+ "name": "true"
1070
+ },
1071
+ "isOptional": false
1072
+ }
1073
+ ]
1074
+ },
1075
+ "isOptional": true,
1076
+ "isSpread": false
1077
+ }
1078
+ ],
1079
+ "returnType": {
1080
+ "__schema": "TypeRefSchema",
1081
+ "location": {
1082
+ "filePath": "express.main.runtime.ts",
1083
+ "line": 89,
1084
+ "character": 3
1085
+ },
1086
+ "name": "Express",
1087
+ "packageName": "express"
1088
+ },
1089
+ "modifiers": []
1090
+ },
1091
+ {
1092
+ "__schema": "VariableLikeSchema",
1093
+ "location": {
1094
+ "filePath": "express.main.runtime.ts",
1095
+ "line": 159,
1096
+ "character": 3
1097
+ },
1098
+ "signature": "(property) ExpressMain.slots: (((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]",
1099
+ "name": "slots",
1100
+ "type": {
1101
+ "__schema": "InferenceTypeSchema",
1102
+ "location": {
1103
+ "filePath": "express.main.runtime.ts",
1104
+ "line": 159,
1105
+ "character": 3
1106
+ },
1107
+ "type": "(((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]"
1108
+ },
1109
+ "isOptional": true,
1110
+ "defaultValue": "[Slot.withType<Route[]>(), Slot.withType<MiddlewareManifest[]>()]"
1111
+ },
1112
+ {
1113
+ "__schema": "VariableLikeSchema",
1114
+ "location": {
1115
+ "filePath": "express.main.runtime.ts",
1116
+ "line": 160,
1117
+ "character": 3
1118
+ },
1119
+ "signature": "(property) ExpressMain.dependencies: Aspect[]",
1120
+ "name": "dependencies",
1121
+ "type": {
1122
+ "__schema": "InferenceTypeSchema",
1123
+ "location": {
1124
+ "filePath": "express.main.runtime.ts",
1125
+ "line": 160,
1126
+ "character": 3
1127
+ },
1128
+ "type": "Aspect[]"
1129
+ },
1130
+ "isOptional": true,
1131
+ "defaultValue": "[LoggerAspect]"
1132
+ },
1133
+ {
1134
+ "__schema": "VariableLikeSchema",
1135
+ "location": {
1136
+ "filePath": "express.main.runtime.ts",
1137
+ "line": 162,
1138
+ "character": 3
1139
+ },
1140
+ "signature": "(property) ExpressMain.defaultConfig: {\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}",
1141
+ "name": "defaultConfig",
1142
+ "type": {
1143
+ "__schema": "InferenceTypeSchema",
1144
+ "location": {
1145
+ "filePath": "express.main.runtime.ts",
1146
+ "line": 162,
1147
+ "character": 3
1148
+ },
1149
+ "type": "{\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}"
1150
+ },
1151
+ "isOptional": true,
1152
+ "defaultValue": "{\n port: 4001,\n namespace: 'api',\n loggerIgnorePath: ['/api/_health'],\n }"
1153
+ },
1154
+ {
1155
+ "__schema": "FunctionLikeSchema",
1156
+ "location": {
1157
+ "filePath": "express.main.runtime.ts",
1158
+ "line": 168,
1159
+ "character": 3
1160
+ },
1161
+ "signature": "(method) ExpressMain.provider([loggerFactory]: [LoggerMain], config: ExpressConfig, [routeSlot, middlewareSlot]: [RouteSlot, MiddlewareSlot]): Promise<ExpressMain>",
1162
+ "name": "provider",
1163
+ "params": [
1164
+ {
1165
+ "__schema": "ParameterSchema",
1166
+ "location": {
1167
+ "filePath": "express.main.runtime.ts",
1168
+ "line": 169,
1169
+ "character": 5
1170
+ },
1171
+ "name": "[ loggerFactory ]",
1172
+ "type": {
1173
+ "__schema": "TupleTypeSchema",
1174
+ "location": {
1175
+ "filePath": "express.main.runtime.ts",
1176
+ "line": 169,
1177
+ "character": 22
1178
+ },
1179
+ "elements": [
1180
+ {
1181
+ "__schema": "TypeRefSchema",
1182
+ "location": {
1183
+ "filePath": "express.main.runtime.ts",
1184
+ "line": 169,
1185
+ "character": 23
1186
+ },
1187
+ "name": "LoggerMain",
1188
+ "componentId": {
1189
+ "scope": "teambit.harmony",
1190
+ "name": "logger"
1191
+ }
1192
+ }
1193
+ ]
1194
+ },
1195
+ "isOptional": false,
1196
+ "isSpread": false
1197
+ },
1198
+ {
1199
+ "__schema": "ParameterSchema",
1200
+ "location": {
1201
+ "filePath": "express.main.runtime.ts",
1202
+ "line": 170,
1203
+ "character": 5
1204
+ },
1205
+ "name": "config",
1206
+ "type": {
1207
+ "__schema": "TypeRefSchema",
1208
+ "location": {
1209
+ "filePath": "express.main.runtime.ts",
1210
+ "line": 170,
1211
+ "character": 13
1212
+ },
1213
+ "name": "ExpressConfig",
1214
+ "internalFilePath": "express.main.runtime.ts"
1215
+ },
1216
+ "isOptional": false,
1217
+ "isSpread": false
1218
+ },
1219
+ {
1220
+ "__schema": "ParameterSchema",
1221
+ "location": {
1222
+ "filePath": "express.main.runtime.ts",
1223
+ "line": 171,
1224
+ "character": 5
1225
+ },
1226
+ "name": "[ routeSlot, middlewareSlot ]",
1227
+ "type": {
1228
+ "__schema": "TupleTypeSchema",
1229
+ "location": {
1230
+ "filePath": "express.main.runtime.ts",
1231
+ "line": 171,
1232
+ "character": 34
1233
+ },
1234
+ "elements": [
1235
+ {
1236
+ "__schema": "TypeRefSchema",
1237
+ "location": {
1238
+ "filePath": "express.main.runtime.ts",
1239
+ "line": 171,
1240
+ "character": 35
1241
+ },
1242
+ "name": "RouteSlot"
1243
+ },
1244
+ {
1245
+ "__schema": "TypeRefSchema",
1246
+ "location": {
1247
+ "filePath": "express.main.runtime.ts",
1248
+ "line": 171,
1249
+ "character": 46
1250
+ },
1251
+ "name": "MiddlewareSlot",
1252
+ "internalFilePath": "express.main.runtime.ts"
1253
+ }
1254
+ ]
1255
+ },
1256
+ "isOptional": false,
1257
+ "isSpread": false
1258
+ }
1259
+ ],
1260
+ "returnType": {
1261
+ "__schema": "InferenceTypeSchema",
1262
+ "location": {
1263
+ "filePath": "express.main.runtime.ts",
1264
+ "line": 168,
1265
+ "character": 3
1266
+ },
1267
+ "type": "Promise<ExpressMain>"
1268
+ },
1269
+ "modifiers": [
1270
+ "static",
1271
+ "async"
1272
+ ]
1273
+ }
1274
+ ],
1275
+ "extendsNodes": [],
1276
+ "implementNodes": []
1277
+ }
1278
+ },
1279
+ {
1280
+ "__schema": "ExportSchema",
1281
+ "location": {
1282
+ "filePath": "index.ts",
1283
+ "line": 7,
1284
+ "character": 10
1285
+ },
1286
+ "signature": "const ExpressAspect: Aspect",
1287
+ "name": "ExpressAspect",
1288
+ "exportNode": {
1289
+ "__schema": "VariableLikeSchema",
1290
+ "location": {
1291
+ "filePath": "express.aspect.ts",
1292
+ "line": 3,
1293
+ "character": 14
1294
+ },
1295
+ "signature": "const ExpressAspect: Aspect",
1296
+ "name": "ExpressAspect",
1297
+ "type": {
1298
+ "__schema": "TypeRefSchema",
1299
+ "location": {
1300
+ "filePath": "express.aspect.ts",
1301
+ "line": 3,
1302
+ "character": 14
1303
+ },
1304
+ "name": "Aspect",
1305
+ "componentId": {
1306
+ "scope": "teambit.harmony",
1307
+ "name": "harmony",
1308
+ "version": "0.4.6"
1309
+ }
1310
+ },
1311
+ "isOptional": false,
1312
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/express',\n dependencies: [],\n defaultConfig: {},\n})"
1313
+ }
1314
+ }
1315
+ ],
1316
+ "internals": []
1317
+ },
1318
+ "internals": [
1319
+ {
1320
+ "__schema": "ModuleSchema",
1321
+ "location": {
1322
+ "filePath": "express.main.runtime.ts",
1323
+ "line": 1,
1324
+ "character": 1
1325
+ },
1326
+ "exports": [
1327
+ {
1328
+ "__schema": "TypeSchema",
1329
+ "location": {
1330
+ "filePath": "express.main.runtime.ts",
1331
+ "line": 13,
1332
+ "character": 1
1333
+ },
1334
+ "signature": "type ExpressConfig = {\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}",
1335
+ "name": "ExpressConfig",
1336
+ "type": {
1337
+ "__schema": "TypeLiteralSchema",
1338
+ "location": {
1339
+ "filePath": "express.main.runtime.ts",
1340
+ "line": 13,
1341
+ "character": 29
1342
+ },
1343
+ "members": [
1344
+ {
1345
+ "__schema": "VariableLikeSchema",
1346
+ "location": {
1347
+ "filePath": "express.main.runtime.ts",
1348
+ "line": 14,
1349
+ "character": 3
1350
+ },
1351
+ "signature": "(property) port: number",
1352
+ "name": "port",
1353
+ "type": {
1354
+ "__schema": "KeywordTypeSchema",
1355
+ "location": {
1356
+ "filePath": "express.main.runtime.ts",
1357
+ "line": 14,
1358
+ "character": 9
1359
+ },
1360
+ "name": "number"
1361
+ },
1362
+ "isOptional": false
1363
+ },
1364
+ {
1365
+ "__schema": "VariableLikeSchema",
1366
+ "location": {
1367
+ "filePath": "express.main.runtime.ts",
1368
+ "line": 15,
1369
+ "character": 3
1370
+ },
1371
+ "signature": "(property) namespace: string",
1372
+ "name": "namespace",
1373
+ "type": {
1374
+ "__schema": "KeywordTypeSchema",
1375
+ "location": {
1376
+ "filePath": "express.main.runtime.ts",
1377
+ "line": 15,
1378
+ "character": 14
1379
+ },
1380
+ "name": "string"
1381
+ },
1382
+ "isOptional": false
1383
+ },
1384
+ {
1385
+ "__schema": "VariableLikeSchema",
1386
+ "location": {
1387
+ "filePath": "express.main.runtime.ts",
1388
+ "line": 16,
1389
+ "character": 3
1390
+ },
1391
+ "signature": "(property) loggerIgnorePath: string[]",
1392
+ "name": "loggerIgnorePath",
1393
+ "type": {
1394
+ "__schema": "TypeArraySchema",
1395
+ "location": {
1396
+ "filePath": "express.main.runtime.ts",
1397
+ "line": 16,
1398
+ "character": 21
1399
+ },
1400
+ "type": {
1401
+ "__schema": "KeywordTypeSchema",
1402
+ "location": {
1403
+ "filePath": "express.main.runtime.ts",
1404
+ "line": 16,
1405
+ "character": 21
1406
+ },
1407
+ "name": "string"
1408
+ }
1409
+ },
1410
+ "isOptional": false
1411
+ }
1412
+ ]
1413
+ }
1414
+ },
1415
+ {
1416
+ "__schema": "TypeSchema",
1417
+ "location": {
1418
+ "filePath": "express.main.runtime.ts",
1419
+ "line": 19,
1420
+ "character": 1
1421
+ },
1422
+ "signature": "type MiddlewareSlot = SlotRegistry<MiddlewareManifest[]>",
1423
+ "name": "MiddlewareSlot",
1424
+ "type": {
1425
+ "__schema": "TypeRefSchema",
1426
+ "location": {
1427
+ "filePath": "express.main.runtime.ts",
1428
+ "line": 19,
1429
+ "character": 30
1430
+ },
1431
+ "name": "SlotRegistry",
1432
+ "componentId": {
1433
+ "scope": "teambit.harmony",
1434
+ "name": "harmony",
1435
+ "version": "0.4.6"
1436
+ },
1437
+ "typeArgs": [
1438
+ {
1439
+ "__schema": "TypeArraySchema",
1440
+ "location": {
1441
+ "filePath": "express.main.runtime.ts",
1442
+ "line": 19,
1443
+ "character": 43
1444
+ },
1445
+ "type": {
1446
+ "__schema": "TypeRefSchema",
1447
+ "location": {
1448
+ "filePath": "express.main.runtime.ts",
1449
+ "line": 19,
1450
+ "character": 43
1451
+ },
1452
+ "name": "MiddlewareManifest"
1453
+ }
1454
+ }
1455
+ ]
1456
+ }
1457
+ },
1458
+ {
1459
+ "__schema": "TypeSchema",
1460
+ "location": {
1461
+ "filePath": "express.main.runtime.ts",
1462
+ "line": 21,
1463
+ "character": 1
1464
+ },
1465
+ "signature": "type RouteSlot = SlotRegistry<Route[]>",
1466
+ "name": "RouteSlot",
1467
+ "type": {
1468
+ "__schema": "TypeRefSchema",
1469
+ "location": {
1470
+ "filePath": "express.main.runtime.ts",
1471
+ "line": 21,
1472
+ "character": 25
1473
+ },
1474
+ "name": "SlotRegistry",
1475
+ "componentId": {
1476
+ "scope": "teambit.harmony",
1477
+ "name": "harmony",
1478
+ "version": "0.4.6"
1479
+ },
1480
+ "typeArgs": [
1481
+ {
1482
+ "__schema": "TypeArraySchema",
1483
+ "location": {
1484
+ "filePath": "express.main.runtime.ts",
1485
+ "line": 21,
1486
+ "character": 38
1487
+ },
1488
+ "type": {
1489
+ "__schema": "TypeRefSchema",
1490
+ "location": {
1491
+ "filePath": "express.main.runtime.ts",
1492
+ "line": 21,
1493
+ "character": 38
1494
+ },
1495
+ "name": "Route"
1496
+ }
1497
+ }
1498
+ ]
1499
+ }
1500
+ },
1501
+ {
1502
+ "__schema": "ClassSchema",
1503
+ "location": {
1504
+ "filePath": "express.main.runtime.ts",
1505
+ "line": 23,
1506
+ "character": 1
1507
+ },
1508
+ "signature": "class ExpressMain",
1509
+ "name": "ExpressMain",
1510
+ "members": [
1511
+ {
1512
+ "__schema": "VariableLikeSchema",
1513
+ "location": {
1514
+ "filePath": "express.main.runtime.ts",
1515
+ "line": 24,
1516
+ "character": 3
1517
+ },
1518
+ "signature": "(property) ExpressMain.runtime: RuntimeDefinition",
1519
+ "name": "runtime",
1520
+ "type": {
1521
+ "__schema": "InferenceTypeSchema",
1522
+ "location": {
1523
+ "filePath": "express.main.runtime.ts",
1524
+ "line": 24,
1525
+ "character": 3
1526
+ },
1527
+ "type": "RuntimeDefinition"
1528
+ },
1529
+ "isOptional": true,
1530
+ "defaultValue": "MainRuntime"
1531
+ },
1532
+ {
1533
+ "__schema": "ConstructorSchema",
1534
+ "location": {
1535
+ "filePath": "express.main.runtime.ts",
1536
+ "line": 26,
1537
+ "character": 3
1538
+ },
1539
+ "signature": "constructor ExpressMain(config: ExpressConfig, moduleSlot: RouteSlot, logger: Logger, middlewareSlot: MiddlewareSlot): ExpressMain",
1540
+ "name": "constructor",
1541
+ "params": [
1542
+ {
1543
+ "__schema": "ParameterSchema",
1544
+ "location": {
1545
+ "filePath": "express.main.runtime.ts",
1546
+ "line": 30,
1547
+ "character": 5
1548
+ },
1549
+ "name": "config",
1550
+ "type": {
1551
+ "__schema": "TypeRefSchema",
1552
+ "location": {
1553
+ "filePath": "express.main.runtime.ts",
1554
+ "line": 30,
1555
+ "character": 22
1556
+ },
1557
+ "name": "ExpressConfig",
1558
+ "internalFilePath": "express.main.runtime.ts"
1559
+ },
1560
+ "isOptional": false,
1561
+ "isSpread": false
1562
+ },
1563
+ {
1564
+ "__schema": "ParameterSchema",
1565
+ "location": {
1566
+ "filePath": "express.main.runtime.ts",
1567
+ "line": 35,
1568
+ "character": 5
1569
+ },
1570
+ "name": "moduleSlot",
1571
+ "type": {
1572
+ "__schema": "TypeRefSchema",
1573
+ "location": {
1574
+ "filePath": "express.main.runtime.ts",
1575
+ "line": 35,
1576
+ "character": 25
1577
+ },
1578
+ "name": "RouteSlot"
1579
+ },
1580
+ "isOptional": false,
1581
+ "isSpread": false
1582
+ },
1583
+ {
1584
+ "__schema": "ParameterSchema",
1585
+ "location": {
1586
+ "filePath": "express.main.runtime.ts",
1587
+ "line": 40,
1588
+ "character": 5
1589
+ },
1590
+ "name": "logger",
1591
+ "type": {
1592
+ "__schema": "TypeRefSchema",
1593
+ "location": {
1594
+ "filePath": "express.main.runtime.ts",
1595
+ "line": 40,
1596
+ "character": 22
1597
+ },
1598
+ "name": "Logger",
1599
+ "componentId": {
1600
+ "scope": "teambit.harmony",
1601
+ "name": "logger"
1602
+ }
1603
+ },
1604
+ "isOptional": false,
1605
+ "isSpread": false
1606
+ },
1607
+ {
1608
+ "__schema": "ParameterSchema",
1609
+ "location": {
1610
+ "filePath": "express.main.runtime.ts",
1611
+ "line": 42,
1612
+ "character": 5
1613
+ },
1614
+ "name": "middlewareSlot",
1615
+ "type": {
1616
+ "__schema": "TypeRefSchema",
1617
+ "location": {
1618
+ "filePath": "express.main.runtime.ts",
1619
+ "line": 42,
1620
+ "character": 30
1621
+ },
1622
+ "name": "MiddlewareSlot",
1623
+ "internalFilePath": "express.main.runtime.ts"
1624
+ },
1625
+ "isOptional": false,
1626
+ "isSpread": false
1627
+ }
1628
+ ],
1629
+ "returnType": {
1630
+ "__schema": "ThisTypeSchema",
1631
+ "location": {
1632
+ "filePath": "express.main.runtime.ts",
1633
+ "line": 23,
1634
+ "character": 1
1635
+ },
1636
+ "name": "ExpressMain"
1637
+ },
1638
+ "modifiers": []
1639
+ },
1640
+ {
1641
+ "__schema": "FunctionLikeSchema",
1642
+ "location": {
1643
+ "filePath": "express.main.runtime.ts",
1644
+ "line": 48,
1645
+ "character": 3
1646
+ },
1647
+ "doc": {
1648
+ "__schema": "DocSchema",
1649
+ "location": {
1650
+ "filePath": "express.main.runtime.ts",
1651
+ "line": 45,
1652
+ "character": 3
1653
+ },
1654
+ "raw": "/**\n * start an express server.\n */",
1655
+ "comment": "start an express server.",
1656
+ "tags": []
1657
+ },
1658
+ "signature": "(method) ExpressMain.listen(port?: number): Promise<Server>",
1659
+ "name": "listen",
1660
+ "params": [
1661
+ {
1662
+ "__schema": "ParameterSchema",
1663
+ "location": {
1664
+ "filePath": "express.main.runtime.ts",
1665
+ "line": 48,
1666
+ "character": 16
1667
+ },
1668
+ "name": "port",
1669
+ "type": {
1670
+ "__schema": "KeywordTypeSchema",
1671
+ "location": {
1672
+ "filePath": "express.main.runtime.ts",
1673
+ "line": 48,
1674
+ "character": 23
1675
+ },
1676
+ "name": "number"
1677
+ },
1678
+ "isOptional": true,
1679
+ "isSpread": false
1680
+ }
1681
+ ],
1682
+ "returnType": {
1683
+ "__schema": "TypeRefSchema",
1684
+ "location": {
1685
+ "filePath": "express.main.runtime.ts",
1686
+ "line": 48,
1687
+ "character": 32
1688
+ },
1689
+ "name": "Promise",
1690
+ "typeArgs": [
1691
+ {
1692
+ "__schema": "TypeRefSchema",
1693
+ "location": {
1694
+ "filePath": "express.main.runtime.ts",
1695
+ "line": 48,
1696
+ "character": 40
1697
+ },
1698
+ "name": "Server",
1699
+ "packageName": "http"
1700
+ }
1701
+ ]
1702
+ },
1703
+ "modifiers": [
1704
+ "async"
1705
+ ]
1706
+ },
1707
+ {
1708
+ "__schema": "FunctionLikeSchema",
1709
+ "location": {
1710
+ "filePath": "express.main.runtime.ts",
1711
+ "line": 54,
1712
+ "character": 3
1713
+ },
1714
+ "signature": "(method) ExpressMain.static(root: string, opts?: any): any",
1715
+ "name": "static",
1716
+ "params": [
1717
+ {
1718
+ "__schema": "ParameterSchema",
1719
+ "location": {
1720
+ "filePath": "express.main.runtime.ts",
1721
+ "line": 54,
1722
+ "character": 10
1723
+ },
1724
+ "name": "root",
1725
+ "type": {
1726
+ "__schema": "KeywordTypeSchema",
1727
+ "location": {
1728
+ "filePath": "express.main.runtime.ts",
1729
+ "line": 54,
1730
+ "character": 16
1731
+ },
1732
+ "name": "string"
1733
+ },
1734
+ "isOptional": false,
1735
+ "isSpread": false
1736
+ },
1737
+ {
1738
+ "__schema": "ParameterSchema",
1739
+ "location": {
1740
+ "filePath": "express.main.runtime.ts",
1741
+ "line": 54,
1742
+ "character": 24
1743
+ },
1744
+ "name": "opts",
1745
+ "type": {
1746
+ "__schema": "KeywordTypeSchema",
1747
+ "location": {
1748
+ "filePath": "express.main.runtime.ts",
1749
+ "line": 54,
1750
+ "character": 31
1751
+ },
1752
+ "name": "any"
1753
+ },
1754
+ "isOptional": true,
1755
+ "isSpread": false
1756
+ }
1757
+ ],
1758
+ "returnType": {
1759
+ "__schema": "KeywordTypeSchema",
1760
+ "location": {
1761
+ "filePath": "express.main.runtime.ts",
1762
+ "line": 54,
1763
+ "character": 37
1764
+ },
1765
+ "name": "any"
1766
+ },
1767
+ "modifiers": []
1768
+ },
1769
+ {
1770
+ "__schema": "FunctionLikeSchema",
1771
+ "location": {
1772
+ "filePath": "express.main.runtime.ts",
1773
+ "line": 62,
1774
+ "character": 3
1775
+ },
1776
+ "doc": {
1777
+ "__schema": "DocSchema",
1778
+ "location": {
1779
+ "filePath": "express.main.runtime.ts",
1780
+ "line": 58,
1781
+ "character": 3
1782
+ },
1783
+ "raw": "/**\n * register a new express routes.\n * route will be added as `/api/${route}`\n */",
1784
+ "comment": "register a new express routes.\nroute will be added as `/api/${route}`",
1785
+ "tags": []
1786
+ },
1787
+ "signature": "(method) ExpressMain.register(routes: Route[]): this",
1788
+ "name": "register",
1789
+ "params": [
1790
+ {
1791
+ "__schema": "ParameterSchema",
1792
+ "location": {
1793
+ "filePath": "express.main.runtime.ts",
1794
+ "line": 62,
1795
+ "character": 12
1796
+ },
1797
+ "name": "routes",
1798
+ "type": {
1799
+ "__schema": "TypeArraySchema",
1800
+ "location": {
1801
+ "filePath": "express.main.runtime.ts",
1802
+ "line": 62,
1803
+ "character": 20
1804
+ },
1805
+ "type": {
1806
+ "__schema": "TypeRefSchema",
1807
+ "location": {
1808
+ "filePath": "express.main.runtime.ts",
1809
+ "line": 62,
1810
+ "character": 20
1811
+ },
1812
+ "name": "Route"
1813
+ }
1814
+ },
1815
+ "isOptional": false,
1816
+ "isSpread": false
1817
+ }
1818
+ ],
1819
+ "returnType": {
1820
+ "__schema": "TypeRefSchema",
1821
+ "location": {
1822
+ "filePath": "express.main.runtime.ts",
1823
+ "line": 62,
1824
+ "character": 3
1825
+ },
1826
+ "name": "ExpressMain"
1827
+ },
1828
+ "modifiers": []
1829
+ },
1830
+ {
1831
+ "__schema": "FunctionLikeSchema",
1832
+ "location": {
1833
+ "filePath": "express.main.runtime.ts",
1834
+ "line": 70,
1835
+ "character": 3
1836
+ },
1837
+ "doc": {
1838
+ "__schema": "DocSchema",
1839
+ "location": {
1840
+ "filePath": "express.main.runtime.ts",
1841
+ "line": 67,
1842
+ "character": 3
1843
+ },
1844
+ "raw": "/**\n * register a new middleware into express.\n */",
1845
+ "comment": "register a new middleware into express.",
1846
+ "tags": []
1847
+ },
1848
+ "signature": "(method) ExpressMain.registerMiddleware(middlewares: MiddlewareManifest[]): this",
1849
+ "name": "registerMiddleware",
1850
+ "params": [
1851
+ {
1852
+ "__schema": "ParameterSchema",
1853
+ "location": {
1854
+ "filePath": "express.main.runtime.ts",
1855
+ "line": 70,
1856
+ "character": 22
1857
+ },
1858
+ "name": "middlewares",
1859
+ "type": {
1860
+ "__schema": "TypeArraySchema",
1861
+ "location": {
1862
+ "filePath": "express.main.runtime.ts",
1863
+ "line": 70,
1864
+ "character": 35
1865
+ },
1866
+ "type": {
1867
+ "__schema": "TypeRefSchema",
1868
+ "location": {
1869
+ "filePath": "express.main.runtime.ts",
1870
+ "line": 70,
1871
+ "character": 35
1872
+ },
1873
+ "name": "MiddlewareManifest"
1874
+ }
1875
+ },
1876
+ "isOptional": false,
1877
+ "isSpread": false
1878
+ }
1879
+ ],
1880
+ "returnType": {
1881
+ "__schema": "TypeRefSchema",
1882
+ "location": {
1883
+ "filePath": "express.main.runtime.ts",
1884
+ "line": 70,
1885
+ "character": 3
1886
+ },
1887
+ "name": "ExpressMain"
1888
+ },
1889
+ "modifiers": []
1890
+ },
1891
+ {
1892
+ "__schema": "FunctionLikeSchema",
1893
+ "location": {
1894
+ "filePath": "express.main.runtime.ts",
1895
+ "line": 89,
1896
+ "character": 3
1897
+ },
1898
+ "signature": "(method) ExpressMain.createApp(expressApp?: Express, options?: {\n disableBodyParser: true;\n}): Express",
1899
+ "name": "createApp",
1900
+ "params": [
1901
+ {
1902
+ "__schema": "ParameterSchema",
1903
+ "location": {
1904
+ "filePath": "express.main.runtime.ts",
1905
+ "line": 89,
1906
+ "character": 13
1907
+ },
1908
+ "name": "expressApp",
1909
+ "type": {
1910
+ "__schema": "TypeRefSchema",
1911
+ "location": {
1912
+ "filePath": "express.main.runtime.ts",
1913
+ "line": 89,
1914
+ "character": 26
1915
+ },
1916
+ "name": "Express",
1917
+ "packageName": "express"
1918
+ },
1919
+ "isOptional": true,
1920
+ "isSpread": false
1921
+ },
1922
+ {
1923
+ "__schema": "ParameterSchema",
1924
+ "location": {
1925
+ "filePath": "express.main.runtime.ts",
1926
+ "line": 89,
1927
+ "character": 35
1928
+ },
1929
+ "name": "options",
1930
+ "type": {
1931
+ "__schema": "TypeLiteralSchema",
1932
+ "location": {
1933
+ "filePath": "express.main.runtime.ts",
1934
+ "line": 89,
1935
+ "character": 45
1936
+ },
1937
+ "members": [
1938
+ {
1939
+ "__schema": "VariableLikeSchema",
1940
+ "location": {
1941
+ "filePath": "express.main.runtime.ts",
1942
+ "line": 89,
1943
+ "character": 47
1944
+ },
1945
+ "signature": "(property) disableBodyParser: true",
1946
+ "name": "disableBodyParser",
1947
+ "type": {
1948
+ "__schema": "LiteralTypeSchema",
1949
+ "location": {
1950
+ "filePath": "express.main.runtime.ts",
1951
+ "line": 89,
1952
+ "character": 66
1953
+ },
1954
+ "name": "true"
1955
+ },
1956
+ "isOptional": false
1957
+ }
1958
+ ]
1959
+ },
1960
+ "isOptional": true,
1961
+ "isSpread": false
1962
+ }
1963
+ ],
1964
+ "returnType": {
1965
+ "__schema": "TypeRefSchema",
1966
+ "location": {
1967
+ "filePath": "express.main.runtime.ts",
1968
+ "line": 89,
1969
+ "character": 3
1970
+ },
1971
+ "name": "Express",
1972
+ "packageName": "express"
1973
+ },
1974
+ "modifiers": []
1975
+ },
1976
+ {
1977
+ "__schema": "VariableLikeSchema",
1978
+ "location": {
1979
+ "filePath": "express.main.runtime.ts",
1980
+ "line": 159,
1981
+ "character": 3
1982
+ },
1983
+ "signature": "(property) ExpressMain.slots: (((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]",
1984
+ "name": "slots",
1985
+ "type": {
1986
+ "__schema": "InferenceTypeSchema",
1987
+ "location": {
1988
+ "filePath": "express.main.runtime.ts",
1989
+ "line": 159,
1990
+ "character": 3
1991
+ },
1992
+ "type": "(((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<MiddlewareManifest[]>))[]"
1993
+ },
1994
+ "isOptional": true,
1995
+ "defaultValue": "[Slot.withType<Route[]>(), Slot.withType<MiddlewareManifest[]>()]"
1996
+ },
1997
+ {
1998
+ "__schema": "VariableLikeSchema",
1999
+ "location": {
2000
+ "filePath": "express.main.runtime.ts",
2001
+ "line": 160,
2002
+ "character": 3
2003
+ },
2004
+ "signature": "(property) ExpressMain.dependencies: Aspect[]",
2005
+ "name": "dependencies",
2006
+ "type": {
2007
+ "__schema": "InferenceTypeSchema",
2008
+ "location": {
2009
+ "filePath": "express.main.runtime.ts",
2010
+ "line": 160,
2011
+ "character": 3
2012
+ },
2013
+ "type": "Aspect[]"
2014
+ },
2015
+ "isOptional": true,
2016
+ "defaultValue": "[LoggerAspect]"
2017
+ },
2018
+ {
2019
+ "__schema": "VariableLikeSchema",
2020
+ "location": {
2021
+ "filePath": "express.main.runtime.ts",
2022
+ "line": 162,
2023
+ "character": 3
2024
+ },
2025
+ "signature": "(property) ExpressMain.defaultConfig: {\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}",
2026
+ "name": "defaultConfig",
2027
+ "type": {
2028
+ "__schema": "InferenceTypeSchema",
2029
+ "location": {
2030
+ "filePath": "express.main.runtime.ts",
2031
+ "line": 162,
2032
+ "character": 3
2033
+ },
2034
+ "type": "{\n port: number;\n namespace: string;\n loggerIgnorePath: string[];\n}"
2035
+ },
2036
+ "isOptional": true,
2037
+ "defaultValue": "{\n port: 4001,\n namespace: 'api',\n loggerIgnorePath: ['/api/_health'],\n }"
2038
+ },
2039
+ {
2040
+ "__schema": "FunctionLikeSchema",
2041
+ "location": {
2042
+ "filePath": "express.main.runtime.ts",
2043
+ "line": 168,
2044
+ "character": 3
2045
+ },
2046
+ "signature": "(method) ExpressMain.provider([loggerFactory]: [LoggerMain], config: ExpressConfig, [routeSlot, middlewareSlot]: [RouteSlot, MiddlewareSlot]): Promise<ExpressMain>",
2047
+ "name": "provider",
2048
+ "params": [
2049
+ {
2050
+ "__schema": "ParameterSchema",
2051
+ "location": {
2052
+ "filePath": "express.main.runtime.ts",
2053
+ "line": 169,
2054
+ "character": 5
2055
+ },
2056
+ "name": "[ loggerFactory ]",
2057
+ "type": {
2058
+ "__schema": "TupleTypeSchema",
2059
+ "location": {
2060
+ "filePath": "express.main.runtime.ts",
2061
+ "line": 169,
2062
+ "character": 22
2063
+ },
2064
+ "elements": [
2065
+ {
2066
+ "__schema": "TypeRefSchema",
2067
+ "location": {
2068
+ "filePath": "express.main.runtime.ts",
2069
+ "line": 169,
2070
+ "character": 23
2071
+ },
2072
+ "name": "LoggerMain",
2073
+ "componentId": {
2074
+ "scope": "teambit.harmony",
2075
+ "name": "logger"
2076
+ }
2077
+ }
2078
+ ]
2079
+ },
2080
+ "isOptional": false,
2081
+ "isSpread": false
2082
+ },
2083
+ {
2084
+ "__schema": "ParameterSchema",
2085
+ "location": {
2086
+ "filePath": "express.main.runtime.ts",
2087
+ "line": 170,
2088
+ "character": 5
2089
+ },
2090
+ "name": "config",
2091
+ "type": {
2092
+ "__schema": "TypeRefSchema",
2093
+ "location": {
2094
+ "filePath": "express.main.runtime.ts",
2095
+ "line": 170,
2096
+ "character": 13
2097
+ },
2098
+ "name": "ExpressConfig",
2099
+ "internalFilePath": "express.main.runtime.ts"
2100
+ },
2101
+ "isOptional": false,
2102
+ "isSpread": false
2103
+ },
2104
+ {
2105
+ "__schema": "ParameterSchema",
2106
+ "location": {
2107
+ "filePath": "express.main.runtime.ts",
2108
+ "line": 171,
2109
+ "character": 5
2110
+ },
2111
+ "name": "[ routeSlot, middlewareSlot ]",
2112
+ "type": {
2113
+ "__schema": "TupleTypeSchema",
2114
+ "location": {
2115
+ "filePath": "express.main.runtime.ts",
2116
+ "line": 171,
2117
+ "character": 34
2118
+ },
2119
+ "elements": [
2120
+ {
2121
+ "__schema": "TypeRefSchema",
2122
+ "location": {
2123
+ "filePath": "express.main.runtime.ts",
2124
+ "line": 171,
2125
+ "character": 35
2126
+ },
2127
+ "name": "RouteSlot"
2128
+ },
2129
+ {
2130
+ "__schema": "TypeRefSchema",
2131
+ "location": {
2132
+ "filePath": "express.main.runtime.ts",
2133
+ "line": 171,
2134
+ "character": 46
2135
+ },
2136
+ "name": "MiddlewareSlot",
2137
+ "internalFilePath": "express.main.runtime.ts"
2138
+ }
2139
+ ]
2140
+ },
2141
+ "isOptional": false,
2142
+ "isSpread": false
2143
+ }
2144
+ ],
2145
+ "returnType": {
2146
+ "__schema": "InferenceTypeSchema",
2147
+ "location": {
2148
+ "filePath": "express.main.runtime.ts",
2149
+ "line": 168,
2150
+ "character": 3
2151
+ },
2152
+ "type": "Promise<ExpressMain>"
2153
+ },
2154
+ "modifiers": [
2155
+ "static",
2156
+ "async"
2157
+ ]
2158
+ }
2159
+ ],
2160
+ "extendsNodes": [],
2161
+ "implementNodes": []
2162
+ }
2163
+ ],
2164
+ "internals": [
2165
+ {
2166
+ "__schema": "UnImplementedSchema",
2167
+ "location": {
2168
+ "filePath": "express.main.runtime.ts",
2169
+ "line": 178,
2170
+ "character": 1
2171
+ },
2172
+ "name": "ExpressAspect.addRuntime(ExpressMain);",
2173
+ "type": "ExpressionStatement"
2174
+ }
2175
+ ]
2176
+ },
2177
+ {
2178
+ "__schema": "ModuleSchema",
2179
+ "location": {
2180
+ "filePath": "express.aspect.ts",
2181
+ "line": 1,
2182
+ "character": 1
2183
+ },
2184
+ "exports": [
2185
+ {
2186
+ "__schema": "VariableLikeSchema",
2187
+ "location": {
2188
+ "filePath": "express.aspect.ts",
2189
+ "line": 3,
2190
+ "character": 14
2191
+ },
2192
+ "signature": "const ExpressAspect: Aspect",
2193
+ "name": "ExpressAspect",
2194
+ "type": {
2195
+ "__schema": "TypeRefSchema",
2196
+ "location": {
2197
+ "filePath": "express.aspect.ts",
2198
+ "line": 3,
2199
+ "character": 14
2200
+ },
2201
+ "name": "Aspect",
2202
+ "componentId": {
2203
+ "scope": "teambit.harmony",
2204
+ "name": "harmony",
2205
+ "version": "0.4.6"
2206
+ }
2207
+ },
2208
+ "isOptional": false,
2209
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/express',\n dependencies: [],\n defaultConfig: {},\n})"
2210
+ }
2211
+ ],
2212
+ "internals": []
2213
+ }
2214
+ ],
2215
+ "componentId": {
2216
+ "scope": "teambit.harmony",
2217
+ "name": "express",
2218
+ "version": "0.0.1190"
2219
+ },
2220
+ "taggedModuleExports": []
2221
+ }