Skip to content

runInContext

@tsed/di

Usage

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

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

Overview

ts
function runInContext<Result = unknown>(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: {
    alterAsync?: (name: string, cb: any) => Promise<any>;
}): Promise<Result>;

alterAsync:

ts
alterAsync?: (name: string, cb: any) => Promise<any>;

Released under the MIT License.