SharedBullAsyncConfiguration


interface SharedBullAsyncConfiguration extends Pick {
  useExisting?: Type<SharedBullConfigurationFactory>
  useClass?: Type<SharedBullConfigurationFactory>
  useFactory?: (...args: any[]) => Promise<Bull.QueueOptions> | Bull.QueueOptions
  inject?: FactoryProvider['inject']
}

Properties

Property Description
useExisting?: Type<SharedBullConfigurationFactory>

Existing Provider to be used.

useClass?: Type<SharedBullConfigurationFactory>

Type (class name) of provider (instance to be registered and injected).

useFactory?: (...args: any[]) => Promise<Bull.QueueOptions> | Bull.QueueOptions

Factory function that returns an instance of the provider to be injected.

inject?: FactoryProvider['inject']

Optional list of providers to be injected into the context of the Factory function.