ServerProperties.d.ts 625 B

123456789101112131415161718192021222324252627
  1. import { WebSocketHandler } from '../base/websocket';
  2. type ServerProperties = {
  3. port: number;
  4. host?: string;
  5. locale?: string;
  6. i18nPath?: string;
  7. middlewaresPath?: string;
  8. routesPath?: string;
  9. viewEngine?: string;
  10. viewsPath?: string;
  11. swagger?: {
  12. docsPath?: string;
  13. title?: string;
  14. version?: string;
  15. route?: string;
  16. description?: string;
  17. components?: object;
  18. security?: object;
  19. };
  20. wsHandlers?: {
  21. [url: string]: WebSocketHandler;
  22. };
  23. options?: {
  24. [key: string]: any;
  25. };
  26. };
  27. export { ServerProperties };