ThrottlerAsyncOptions


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

Properties

Property Description
useExisting?: Type<ThrottlerOptionsFactory>

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

useClass?: Type<ThrottlerOptionsFactory>

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

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

The useFactory syntax allows for creating providers dynamically.

inject?: any[]

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