InvokeOptions
@tsed/di
Usage
typescript
import { InvokeOptions } from "@tsed/di";
See /packages/di/src/types/common/interfaces/InvokeOptions.ts.
Overview
ts
interface InvokeOptions {
deps: TokenProvider[];
imports: TokenProvider[];
parent?: TokenProvider;
rebuild?: boolean;
useOpts?: Record<string, unknown>;
locals?: LocalsContainer;
}
deps
ts
deps: TokenProvider[];
Define dependencies to build the provider and inject them in the constructor.
imports
ts
imports: TokenProvider[];
List of imports to be created before the provider. Imports list aren't injected directly in the provider constructor.
parent
ts
parent?: TokenProvider;
Parent provider.
rebuild
ts
rebuild?: boolean;
If true, the injector will rebuild the instance.
useOpts
ts
useOpts?: Record<string, unknown>;
Option given to injectable props or parameter constructor (UseOpts).
locals
ts
locals?: LocalsContainer;