Skip to content

Interface: ConfigBoundModuleOptions<T>

Defined in: packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:21

Configuration options for ConfigBoundModule. Defines the schema, binds, and behavior for the ConfigBound integration.

Type Parameters

Type ParameterDefault type
T extends ConfigSchemaConfigSchema

Properties

PropertyTypeDescriptionDefined in
binds?Bind[]Value sources consulted in bind order when resolving configuration values.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:29
cacheMode?CacheModeCache initialization strategy. Defaults to eager. - eager: Cache is populated during module initialization. Allows synchronous reads via getFromCache() immediate useful in NestJS constructors or other sync-only call sites that cannot await. - manual: Cache is not populated until you explicitly call populateCache(). Use this when you only read config asynchronously via get() or getOrThrow() and want to avoid the upfront startup cost.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:40
isGlobal?booleanRegisters the module globally in Nest when true.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:42
logger?LoggerOptional logger implementation used by ConfigBound internals.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:31
name?stringOptional instance name; defaults to app when omitted.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:27
schemaTDeclarative schema that defines sections, elements, defaults, and validators.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:25
validateOnInit?booleanValidates values during module initialization when true.packages/nestjs/src/interfaces/config-bound-module-options.interface.ts:33