Skip to content

optionalLazyInject

@tsed/di

Usage

typescript
import { optionalLazyInject } from "@tsed/di";

See /packages/di/src/types/common/fn/lazyInject.ts.

Overview

ts
function optionalLazyInject<Token>(factory: () => Promise<{
    default: TokenProvider;
}>): Promise<Token | undefined>;

default

ts
default: TokenProvider;

Released under the MIT License.