@ccci/micro-server 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10489 -10484
- package/dist/utils/ApplicationServer.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import express, { Application } from 'express';
|
|
1
2
|
import { ApplicationOptionType } from '@/types/ApplicationOptionType';
|
|
2
3
|
/**
|
|
3
4
|
* Application Sever class
|
|
4
5
|
*/
|
|
5
6
|
export default class ApplicationServer {
|
|
7
|
+
static app: Application;
|
|
6
8
|
/**
|
|
7
9
|
* Initializes the application server
|
|
8
10
|
* @param {number} port port for the micro service
|
|
9
11
|
* @param {ApplicationOptionType=} options additional server configuration
|
|
10
12
|
*/
|
|
11
13
|
static bootstrap(port: number, options?: ApplicationOptionType): Promise<void>;
|
|
14
|
+
getInstance(): express.Application;
|
|
12
15
|
}
|
|
13
16
|
//# sourceMappingURL=ApplicationServer.d.ts.map
|