RegisterFlowProducerAsyncOptions


interface RegisterFlowProducerAsyncOptions extends Pick {
  name?: string
  configKey?: string
  useExisting?: Type<RegisterFlowProducerOptionsFactory>
  useClass?: Type<RegisterFlowProducerOptionsFactory>
  useFactory?: (...args: any[]) => Promise<RegisterFlowProducerOptions> | RegisterFlowProducerOptions
  inject?: FactoryProvider['inject']
}

Properties

Property Description
name?: string

Flow name.

By default Flow name and set to "default"

configKey?: string

Shared configuration key.

useExisting?: Type<RegisterFlowProducerOptionsFactory>

Existing Provider to be used.

useClass?: Type<RegisterFlowProducerOptionsFactory>

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

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

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.