@ccci/micro-server 1.0.1 → 1.0.3

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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export type { RequestQuery, QueryOptions, ResponseType, IncludeType, CommonType } from './types/BaseControllerTypes';
2
+ export type { ApplicationOptionType } from './types/ApplicationOptionType';
2
3
  export { default as ApplicationServer } from './utils/ApplicationServer';
3
4
  export { default as RouterFactory } from './utils/RouterFactory';
4
5
  export { default as BaseRouter } from './utils/BaseRouter';
@@ -0,0 +1,12 @@
1
+ export type ApplicationOptionType = {
2
+ configDir?: string;
3
+ modelDir?: string;
4
+ controllerDir?: string;
5
+ routeDir?: string;
6
+ enableRedis?: boolean;
7
+ ebableMinio?: boolean;
8
+ enableWebSocket?: boolean;
9
+ enableFirebase?: boolean;
10
+ enableEmail?: boolean;
11
+ };
12
+ //# sourceMappingURL=ApplicationOptionType.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { ApplicationOptionType } from '@/types/ApplicationOptionType';
1
2
  /**
2
3
  * Application Sever class
3
4
  */
@@ -5,8 +6,8 @@ export default class ApplicationServer {
5
6
  /**
6
7
  * Initializes the application server
7
8
  * @param {number} port port for the micro service
8
- * @param {object=} options additional server configuration
9
+ * @param {ApplicationOptionType=} options additional server configuration
9
10
  */
10
- static bootstrap(port: number, options: any): Promise<void>;
11
+ static bootstrap(port: number, options?: ApplicationOptionType): Promise<void>;
11
12
  }
12
13
  //# sourceMappingURL=ApplicationServer.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",