injectMany
@tsed/di
Usage
typescript
import { injectMany } from "@tsed/di";
Overview
ts
function injectMany<T>(token: string | symbol, opts?: Partial<Pick<InvokeOptions, "useOpts" | "rebuild" | "locals">>): T[];
token (
string
|symbol
): - The injection token to resolveopts (
Partial<Pick<InvokeOptions
): Optional. - configuration for the injectionopts.useOpts (``): - Options for instance creation
opts.rebuild (``): - Whether to rebuild the instance
opts.locals (``): - Local container overrides
Description
Injects multiple instances of a given token using the injector service.