lazyInject
@tsed/di
Usage
typescript
import { lazyInject } from "@tsed/di";
Overview
ts
function lazyInject<Token>(factory: () => Promise<{
default: TokenProvider<Token>;
}>): Promise<Token>;
Description
Lazy load a provider from his package and invoke only when the provider is used.
default
ts
default: TokenProvider<Token>;