Skip to Content
DocsNestJS CRUD ConfigAPI ReferenceInterfacesICrudConfigAsyncModuleProperties

ICrudConfigAsyncModuleProperties

Configuration properties for CrudConfigModule.registerAsync().

Defined in: src/shared/interface/config/async-module-properties.interface.ts

NameTypeDefault
inject(string | symbol | Type<unknown>)[]

Optional array of dependencies to be injected into the factory function or class

staticOptionsIConfigStaticOptions

Static options that must be known at module registration time. Use this to configure controllers and entities when using async registration.

NestJS does not support async controller registration, so controllersOptions and entityOptions must be provided here rather than in the async factory.

useClassType<IConfigPropertiesFactory>

Optional class that implements ICrudConfigPropertiesFactory to be instantiated

useExistingType<IConfigPropertiesFactory>

Optional existing provider implementing ICrudConfigPropertiesFactory to be used

useFactory(...arguments_: any[]) => IConfigOptions | Promise<IConfigOptions>

Optional factory function that returns configuration properties

imports(Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference<any>)[]

Optional list of imported modules that export the providers which are required in this module.

See: Module Registration

Last updated on