injectConfigSource
@tsed/config
Usage
typescript
import { injectConfigSource } from "@tsed/config/src/types/fn/injectConfigSource";
Overview
ts
function injectConfigSource<T extends ConfigSource = ConfigSource>(name: string, opts?: Partial<Pick<InvokeOptions, "useOpts" | "rebuild" | "locals">>): T;
name (
string
): - The name of the configuration source to retrieve.[opts] (
tring
): - invocation options to customize the behavior of the injection.
Description
Injects a configuration source by name and returns it as the specified type.