Features
Docs
CLI
Benchmarks
Examples
GitHub

© 2024 MoroJs

@morojs/moro


@morojs/moro / MoroOptions

Interface: MoroOptions

Defined in: src/core/framework.ts:24

Extends

  • MoroOptions

Properties

autoDiscover?

optional autoDiscover: boolean | { enabled?: boolean; failOnError?: boolean; ignorePatterns?: string[]; loadingStrategy?: "eager" | "lazy" | "conditional"; loadOrder?: "custom" | "alphabetical" | "dependency"; maxDepth?: number; paths?: string[]; patterns?: string[]; recursive?: boolean; watchForChanges?: boolean; }

Defined in: src/types/core.ts:7

Inherited from

CoreMoroOptions.autoDiscover


compression?

optional compression: boolean | object

Defined in: src/types/core.ts:46

Inherited from

CoreMoroOptions.compression


config?

optional config: any

Defined in: src/core/framework.ts:40


cors?

optional cors: boolean | object

Defined in: src/types/core.ts:45

Inherited from

CoreMoroOptions.cors


database?

optional database: Partial<DatabaseConfig>

Defined in: src/types/core.ts:52

Inherited from

CoreMoroOptions.database


external?

optional external: Partial<ExternalServicesConfig>

Defined in: src/types/core.ts:56

Inherited from

CoreMoroOptions.external


helmet?

optional helmet: boolean | object

Defined in: src/types/core.ts:47

Inherited from

CoreMoroOptions.helmet


http2?

optional http2: boolean

Defined in: src/core/framework.ts:25

Overrides

CoreMoroOptions.http2


https?

optional https: object

Defined in: src/core/framework.ts:26

ca?

optional ca: string | Buffer<ArrayBufferLike>

cert

cert: string | Buffer<ArrayBufferLike>

key

key: string | Buffer<ArrayBufferLike>

Overrides

CoreMoroOptions.https


logger?

optional logger: boolean | LoggerOptions

Defined in: src/types/core.ts:48

Inherited from

CoreMoroOptions.logger


logging?

optional logging: Partial<LoggingConfig>

Defined in: src/types/core.ts:54

Inherited from

CoreMoroOptions.logging


middleware?

optional middleware: any[]

Defined in: src/types/core.ts:22

Inherited from

CoreMoroOptions.middleware


modules?

optional modules: Partial<ModuleDefaultsConfig>

Defined in: src/types/core.ts:53

Inherited from

CoreMoroOptions.modules


modulesPath?

optional modulesPath: string

Defined in: src/types/core.ts:21

Inherited from

CoreMoroOptions.modulesPath


performance?

optional performance: Partial<PerformanceConfig>

Defined in: src/types/core.ts:57

Inherited from

CoreMoroOptions.performance


runtime?

optional runtime: RuntimeConfig

Defined in: src/types/core.ts:25

Inherited from

CoreMoroOptions.runtime


security?

optional security: Partial<SecurityConfig>

Defined in: src/types/core.ts:55

Inherited from

CoreMoroOptions.security


server?

optional server: Partial<ServerConfig>

Defined in: src/types/core.ts:51

Inherited from

CoreMoroOptions.server


websocket?

optional websocket: false | { adapter?: WebSocketAdapter; compression?: boolean; customIdGenerator?: () => string; enabled?: boolean; options?: WebSocketAdapterOptions; }

Defined in: src/core/framework.ts:31

Overrides

CoreMoroOptions.websocket