Skip to content

Type Alias: ConfigurableModuleCls<ModuleOptions, MethodKey, FactoryClassMethodKey, ExtraModuleDefinitionOptions>

ts
type ConfigurableModuleCls<ModuleOptions, MethodKey, FactoryClassMethodKey, ExtraModuleDefinitionOptions> = () => any & Record<`${MethodKey}`, (options) => DynamicModule> & Record<`${MethodKey}Async`, (options) => DynamicModule>;

Defined in: packages/core/src/module-utils/interfaces/configurable-module-cls.interface.ts:15

Class that represents a blueprint/prototype for a configurable Nest module. This class provides static methods for constructing dynamic modules. Their names can be controlled through the "MethodKey" type argument.

Type Parameters

Type ParameterDefault type
ModuleOptions-
MethodKey extends stringtypeof DEFAULT_METHOD_KEY
FactoryClassMethodKey extends stringtypeof DEFAULT_FACTORY_CLASS_METHOD_KEY
ExtraModuleDefinitionOptions{ }

Released under the MIT License.