@teambit/express 0.0.1185 → 0.0.1187

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