ServerProperties.ts 558 B

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