Interface TypedConfigModuleAsyncOptions

Hierarchy

Properties

isGlobal?: boolean

Defaults to "true".

If "true", registers ConfigModule as a global module. See: https://docs.nestjs.com/modules#global-modules

Function(s) to load configurations, can be synchronous or asynchronous.

normalize?: ((config) => Record<string, any>)

Type declaration

    • (config): Record<string, any>
    • Custom function to normalize configurations. It takes an object containing environment variables as input and outputs normalized configurations.

      This function is executed before validation, and can be used to do type casting, variable expanding, etc.

      Parameters

      • config: Record<string, any>

      Returns Record<string, any>

schema: ClassConstructor<any>

The root object for application configuration.

validate?: ((config) => Record<string, any>)

Type declaration

    • (config): Record<string, any>
    • Custom function to validate configurations. It takes an object containing environment variables as input and outputs validated configurations. If exception is thrown in the function it would prevent the application from bootstrapping.

      Parameters

      • config: Record<string, any>

      Returns Record<string, any>

validationOptions?: ValidatorOptions

Options passed to validator during validation.

Generated using TypeDoc