Skip to content

runInContext

@tsed/di

Usage

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

See /packages/di/src/node/utils/asyncHookContext.ts.

Overview

ts
function runInContext<Result = unknown>(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: InjectorService): Promise<Result>;

Released under the MIT License.