-
Notifications
You must be signed in to change notification settings - Fork 2
async provider.Function.createAsyncProviders
Sclable CI edited this page Oct 7, 2024
·
7 revisions
@sclable/nestjs-libs / async-provider / createAsyncProviders
createAsyncProviders<
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
• T
type of the object provided by this provider
• provider: AsyncProvider
<T
>
an async provider
• token: string
token for the provider (use this token with the @Inject(<token>)
decorator)
Provider
[]