ServerProperties.ts 518 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. components?: object,
  18. security?: object
  19. },
  20. wsHandlers?: {[url: string] : WebSocketHandler},
  21. options?: {[key: string] : any}
  22. };
  23. export { ServerProperties };