@teambit/express 0.0.949 → 0.0.951

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