We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@sclable/nestjs-libs / async-provider / createAsyncProviders
createAsyncProviders<T>(provider, token): Provider[]
T
provider
token
Provider
Creates an async provider
It returns an array of providers because for the useClass method an additional provider need to be created
useClass
• T
type of the object provided by this provider
• provider: AsyncProvider<T>
AsyncProvider
an async provider
• token: string
string
token for the provider (use this token with the @Inject(<token>) decorator)
@Inject(<token>)
Provider[]
packages/async-provider/index.ts:56