ServerProperties.d.ts 569 B

12345678910111213141516171819202122232425
  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. };
  18. wsHandlers?: {
  19. [url: string]: WebSocketHandler;
  20. };
  21. options?: {
  22. [key: string]: any;
  23. };
  24. };
  25. export { ServerProperties };