Skip to content

async provider

Sclable CI edited this page Jan 15, 2024 · 199 revisions

Module: async-provider

Table of contents

Interfaces

Functions

Functions

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

Type parameters

Name
T

Parameters

Name Type Description
provider AsyncProvider<T> an async provider
token string token for the provider (use this token with the @Inject(<token>) decorator)

Returns

Provider[]

Typeparam

T type of the object provided by this provider

Defined in

packages/async-provider/index.ts:56

Clone this wiki locally