ElasticsearchModuleAsyncOptions


interface ElasticsearchModuleAsyncOptions extends Pick {
  useExisting?: Type<ElasticsearchOptionsFactory>
  useClass?: Type<ElasticsearchOptionsFactory>
  useFactory?: (...args: any[]) => Promise<ElasticsearchModuleOptions> | ElasticsearchModuleOptions
  inject?: any[]
}

Properties

Property Description
useExisting?: Type<ElasticsearchOptionsFactory>

The useExisting syntax allows you to create aliases for existing providers.

useClass?: Type<ElasticsearchOptionsFactory>

The useClass syntax allows you to dynamically determine a class that a token should resolve to.

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

The useFactory syntax allows for creating providers dynamically.

inject?: any[]

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