Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Config

Hierarchy

  • Config

Index

Constructors

constructor

Properties

Private _config

_config: IoCog

Methods

defaults

  • defaults(defaults: {}): void
  • Parameters

    • defaults: {}
      • [key: string]: unknown

    Returns void

get

  • get<T>(key: string, defaultValue?: unknown): T
  • Type parameters

    • T

    Parameters

    • key: string
    • Optional defaultValue: unknown

    Returns T

has

  • has(key: string): boolean

hasValue

  • hasValue(key: string): boolean

required

  • required(keys: string[]): void

Static Private recursiveDefaults

  • recursiveDefaults(config: {}, defaults: {}): {}
  • Parameters

    • config: {}
      • [key: string]: unknown
    • defaults: {}
      • [key: string]: unknown

    Returns {}

    • [key: string]: unknown

Generated using TypeDoc