Skip to content

context

@tsed/di

Usage

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

See /packages/di/src/types/node/fn/context.ts.

Overview

ts
function context<Ctx = DIContext>(): Ctx;

Description

Get the current DIContext instance using async hook node.js api.

WARNING

This function isn't available in the browser context.

Released under the MIT License.