-
Notifications
You must be signed in to change notification settings - Fork 2
async provider
Sclable CI edited this page Jan 15, 2024
·
199 revisions
▸ 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
Name |
---|
T |
Name | Type | Description |
---|---|---|
provider |
AsyncProvider <T > |
an async provider |
token |
string |
token for the provider (use this token with the @Inject(<token>) decorator) |
Provider
[]
Typeparam
T type of the object provided by this provider