Skip to content

injectConfigSource

@tsed/config

Usage

typescript
import { injectConfigSource } from "@tsed/config/src/types/fn/injectConfigSource";

See /packages/config/src/types/fn/injectConfigSource.ts.

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.

Released under the MIT License.