ServerProperties.ts 474 B

1234567891011121314151617181920212223
  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?: {[url: string] : WebSocketHandler},
  19. options?: {[key: string] : any}
  20. };
  21. export { ServerProperties };