TwilioClientAsyncRegistration
Defined in: lib/module/twilio.module.ts:28
Options accepted by TwilioModule.registerClientAsync.
Mirrors the shape Nest’s own generated *Async methods accept, so the async
API is the same whether you are configuring the root or a named client.
Choose exactly one of useFactory, useClass or useExisting.
Extends
Section titled “Extends”Pick<ModuleMetadata,"imports">
Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
imports? |
( | DynamicModule | Type<any> | ForwardReference<any> | Promise<DynamicModule>)[] |
Optional list of imported modules that export the providers which are required in this module. | Pick.imports |
node_modules/.pnpm/@nestjs+common@12.0.4_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@7.2.0/node_modules/@nestjs/common/interfaces/modules/module-metadata.interface.d.ts:18 |
inject? |
undefined |
Dependencies passed to useFactory, in parameter order. |
- | lib/module/twilio.module.ts:36 |
name |
string |
Identifies the client. Inject it with @InjectTwilio(name). |
- | lib/module/twilio.module.ts:30 |
useClass? |
Type<TwilioClientOptionsFactory> |
A class Nest instantiates to produce the options. | - | lib/module/twilio.module.ts:38 |
useExisting? |
Type<TwilioClientOptionsFactory> |
An already-registered provider that produces the options. | - | lib/module/twilio.module.ts:40 |
useFactory? |
(…args) => | Partial<TwilioModuleOptions> | Promise<Partial<TwilioModuleOptions>> |
Returns the client’s options. May be async. | - | lib/module/twilio.module.ts:32 |