ServerProperties.ts 579 B

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